Class: AppKit::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AppKit::User
- Defined in:
- app/models/app_kit/user.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/models/app_kit/user.rb', line 4 def to_s if first_name || last_name "#{first_name} #{last_name}" else email end end |
#versions ⇒ Object
12 13 14 |
# File 'app/models/app_kit/user.rb', line 12 def versions PaperTrail::Version.where(whodunnit: self.id).order(:created_at => :desc).limit(20) end |