Class: Notification
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Notification
- Defined in:
- app/models/notification.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
aggregate_of, all_except, defaults, #delete, #destroy!, enum_prefixed_translations_for, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, teaser_on, #update_and_notify!, update_or_create!, whitelist_attributes
Instance Method Details
#mark_as_read! ⇒ Object
6 7 8 |
# File 'app/models/notification.rb', line 6 def mark_as_read! update read: true end |