volunteers/app/models/member.rb
2023-01-11 20:52:58 +02:00

17 lines
392 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 :stories
def admin
true
end
def admin?
true
end
end