Class: Commontator::Subscription

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

Instance Method Summary collapse

Instance Method Details

#add_unreadObject



13
14
15
# File 'app/models/commontator/subscription.rb', line 13

def add_unread
  update_attribute(:unread, unread + 1)
end

#mark_as_readObject



9
10
11
# File 'app/models/commontator/subscription.rb', line 9

def mark_as_read
  update_attribute(:unread, 0)
end