Class: Thredded::NotificationPreference
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Thredded::NotificationPreference
- Defined in:
- app/models/thredded/notification_preference.rb
Class Method Summary collapse
Class Method Details
.for(user) ⇒ Object
9 10 11 |
# File 'app/models/thredded/notification_preference.rb', line 9 def self.for(user) where(user_id: user.id) end |
.in(messageboard) ⇒ Object
13 14 15 |
# File 'app/models/thredded/notification_preference.rb', line 13 def self.in() where(messageboard_id: .id) end |