Class: HasNotifications::HnNotification
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HasNotifications::HnNotification
- Defined in:
- lib/has_notifications/hn_notification.rb
Instance Method Summary collapse
Instance Method Details
#mark_as_unwatched ⇒ Object
17 18 19 20 21 22 |
# File 'lib/has_notifications/hn_notification.rb', line 17 def mark_as_unwatched # # Mark notification as unwatched # self.update_attribute(:watched, false) end |
#mark_as_watched ⇒ Object
10 11 12 13 14 15 |
# File 'lib/has_notifications/hn_notification.rb', line 10 def mark_as_watched # # Mark notification as watched # self.update_attribute(:watched, true) end |