Class: Homeland::Topic
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Homeland::Topic
- Defined in:
- app/models/homeland/topic.rb
Instance Method Summary collapse
Methods included from Concerns::UserDelegates
Methods included from Concerns::Markup
Methods included from Concerns::SoftDelete
Instance Method Details
#activity_at ⇒ Object
25 26 27 |
# File 'app/models/homeland/topic.rb', line 25 def activity_at self.replied_at || self.updated_at || self.created_at end |
#set_last_active_mark ⇒ Object
21 22 23 |
# File 'app/models/homeland/topic.rb', line 21 def set_last_active_mark self.last_active_mark = Time.now.to_i end |