Class: User

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

Instance Method Summary collapse

Methods inherited from Person

#activate, #disactivate, find_by_login_or_email, #fullname

Instance Method Details

#ageObject



12
13
14
# File 'app/models/user.rb', line 12

def age
  ((Date.today - self.birthday) / 365).floor
end