Class: User

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

Instance Method Summary collapse

Instance Method Details

#avatarObject


18
19
20
# File 'app/models/user.rb', line 18

def avatar
  profile.gravatar
end

#screen_nameObject

after_create :assign_default_role


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

def screen_name
  name = profile.name ||= profile.username ||= email 
end