adding teacher profiles

This commit is contained in:
2023-01-15 14:52:40 +02:00
parent 45f59f174b
commit 750bd76a7e
21 changed files with 288 additions and 32 deletions

View File

@ -7,11 +7,10 @@ class Member < ApplicationRecord
mount_uploader :picture, PictureUploader
has_many :entities
has_one :teacher
def admin
true
end
def admin?
true
email == "torsten@villataika.fi"
end
alias :admin :admin?
end