class Notifiable::NotificationStatus
Public Instance Methods
opened!()
click to toggle source
# File lib/notifiable/notification_status.rb, line 12 def opened! update_attribute(:status, -1) self.notification.increment!(:opened_count) end
opened?()
click to toggle source
# File lib/notifiable/notification_status.rb, line 17 def opened? self.status == -1 end