Class: DailyUser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/daily_user.rb

Instance Method Summary collapse

Instance Method Details

#role_symbolsObject



13
14
15
16
17
18
19
# File 'app/models/daily_user.rb', line 13

def role_symbols
  return [] if new_record?
  
  out = [:user]
  out << :admin if admin?
  out
end