Class: Notification
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Notification
- Includes:
- CommunityRelated
- Defined in:
- /var/apps/qpixel/app/models/notification.rb
Instance Method Summary collapse
-
#read? ⇒ Boolean
Is the notification marked as read?.
-
#unread? ⇒ Boolean
Is the notification not marked as read? The inverse of
read?.
Methods inherited from ApplicationRecord
#attributes_print, fuzzy_search, match_search, #match_search, sanitize_for_search, sanitize_name, sanitize_sql_in, useful_err_msg, with_lax_group_rules
Instance Method Details
#read? ⇒ Boolean
Is the notification marked as read?
10 11 12 |
# File '/var/apps/qpixel/app/models/notification.rb', line 10 def read? is_read end |
#unread? ⇒ Boolean
Is the notification not marked as read? The inverse of read?
16 17 18 |
# File '/var/apps/qpixel/app/models/notification.rb', line 16 def unread? !read? end |