Class: HasNotifications::HnNotification

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/has_notifications/hn_notification.rb

Instance Method Summary collapse

Instance Method Details

#mark_as_unwatchedObject



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_watchedObject



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