Class: Tramway::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Tramway::User
- 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
16 17 18 |
# File 'app/models/tramway/user.rb', line 16 def admin? role.admin? end |
#full_name ⇒ Object
20 21 22 |
# File 'app/models/tramway/user.rb', line 20 def full_name "#{first_name} #{last_name}" end |