Class: Commontator::Subscription
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Commontator::Subscription
- Defined in:
- app/models/commontator/subscription.rb
Instance Method Summary collapse
Instance Method Details
#mark_as_read ⇒ Object
11 12 13 |
# File 'app/models/commontator/subscription.rb', line 11 def mark_as_read self.update_attribute(:is_unread, false) end |
#mark_as_unread ⇒ Object
15 16 17 |
# File 'app/models/commontator/subscription.rb', line 15 def mark_as_unread self.update_attribute(:is_unread, true) end |