hubfeenix.fi/app/models/member.rb
2022-12-31 22:01:51 +02:00

16 lines
370 B
Ruby

class Member < ApplicationRecord
# Include default devise modules. Others available are:
# , :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,:confirmable,
:recoverable, :rememberable, :validatable
mount_uploader :picture, PictureUploader
def admin
true
end
def admin?
true
end
end