2022-12-20 16:05:26 +01:00
|
|
|
class Member < ApplicationRecord
|
2022-12-20 16:29:05 +01:00
|
|
|
# Include default devise modules. Others available are:
|
|
|
|
# , :lockable, :timeoutable, :trackable and :omniauthable
|
|
|
|
devise :database_authenticatable, :registerable,:confirmable,
|
|
|
|
:recoverable, :rememberable, :validatable
|
2022-12-22 15:45:55 +01:00
|
|
|
|
2022-12-25 16:37:22 +01:00
|
|
|
mount_uploader :picture, PictureUploader
|
|
|
|
|
2022-12-31 21:01:51 +01:00
|
|
|
def admin
|
|
|
|
true
|
|
|
|
end
|
2022-12-22 15:45:55 +01:00
|
|
|
def admin?
|
|
|
|
true
|
|
|
|
end
|
2022-12-20 16:05:26 +01:00
|
|
|
end
|