Module: Notifiable::Concern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/notifiable/notifiable_concern.rb
Instance Method Summary collapse
Instance Method Details
#device_tokens ⇒ Object
11 12 13 |
# File 'lib/notifiable/notifiable_concern.rb', line 11 def device_tokens Notifiable::DeviceToken.where(:user_id => self.id) end |
#send_notification(notification) ⇒ Object
5 6 7 8 9 |
# File 'lib/notifiable/notifiable_concern.rb', line 5 def send_notification(notification) notification.batch do |n| n.add_notifiable(self) end end |