hubfeenix.fi/app/models/member.rb
2023-01-15 14:52:40 +02:00

17 lines
435 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
has_many :entities
has_one :teacher
def admin?
email == "torsten@villataika.fi"
end
alias :admin :admin?
end