Class: User

Inherits:
ApplicationRecord show all
Defined in:
app/models/user.rb

Instance Method Summary collapse

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'app/models/user.rb', line 13

def admin?
  role == 'admin'
end