Class: User

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/caseadilla/install/templates/app/models/user.rb

Instance Method Summary collapse

Instance Method Details

#nameObject


10
11
12
# File 'lib/generators/caseadilla/install/templates/app/models/user.rb', line 10

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

#role_symbolsObject


14
15
16
# File 'lib/generators/caseadilla/install/templates/app/models/user.rb', line 14

def role_symbols
    [role.title.to_sym]
end