Class: Tramway::User

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

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#creator, file_extensions, human_attribute_name, photo_versions, search_by, state_machines_names, uploader

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/models/tramway/user.rb', line 16

def admin?
  role.admin?
end

#full_nameObject



20
21
22
# File 'app/models/tramway/user.rb', line 20

def full_name
  "#{first_name} #{last_name}"
end