Issue#15: Added Comment Notifications: notification_emails and comments view
This commit is contained in:
parent
a73ca335a9
commit
38e8be8793
16 changed files with 155 additions and 13 deletions
|
|
@ -11,6 +11,9 @@ class User < ActiveRecord::Base
|
|||
|
||||
before_create :setup_role
|
||||
|
||||
# add scope
|
||||
scope :comment_notifiable, ->(conference) {joins(:roles).where('roles.name IN (?)', [:organizer, :cfp]).where('roles.resource_id = ?', conference.id)}
|
||||
|
||||
# Include default devise modules. Others available are:
|
||||
# :token_authenticatable, :confirmable,
|
||||
# :lockable, :timeoutable and :omniauthable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue