Class: Thredded::MessageboardNotificationsForFollowedTopics
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Thredded::MessageboardNotificationsForFollowedTopics
- Includes:
- NotifierPreference
- Defined in:
- app/models/thredded/messageboard_notifications_for_followed_topics.rb
Class Method Summary collapse
Methods included from NotifierPreference
Class Method Details
.default(_notifier) ⇒ Object
24 25 26 27 28 |
# File 'app/models/thredded/messageboard_notifications_for_followed_topics.rb', line 24 def self.default(_notifier) # could be moved to `notifier.defaults(:notifications_for_followed_topics)` or # `notifier.defaults(:messageboard_notifications_for_followed_topics)` Thredded::BaseNotifier::NotificationsDefault.new(true) end |
.in(messageboard) ⇒ Object
18 19 20 |
# File 'app/models/thredded/messageboard_notifications_for_followed_topics.rb', line 18 def self.in() where(messageboard_id: .id) end |