Class: Subscription
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Subscription
- Defined in:
- app/models/subscription.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
aggregate_of, all_except, defaults, name_model_as, numbered, #save, #save_and_notify!, #save_and_notify_changes!, #update_and_notify!, update_or_create!
Instance Method Details
#read! ⇒ Object
9 10 11 |
# File 'app/models/subscription.rb', line 9 def read! update! read: true end |
#unread! ⇒ Object
5 6 7 |
# File 'app/models/subscription.rb', line 5 def unread! update! read: false end |