Class: Commontator::Subscription

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/commontator/subscription.rb

Instance Method Summary collapse

Instance Method Details

#mark_as_readObject



11
12
13
# File 'app/models/commontator/subscription.rb', line 11

def mark_as_read
  self.update_attribute(:is_unread, false)
end

#mark_as_unreadObject



15
16
17
# File 'app/models/commontator/subscription.rb', line 15

def mark_as_unread
  self.update_attribute(:is_unread, true)
end