Class: Thredded::NotificationPreference

Inherits:
ActiveRecord::Base
  • Object
show all
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(messageboard)
  where(messageboard_id: messageboard.id)
end