Sha256: 20b00064710a494572efba1246ed9732d9d03ddba35bee699209f8c09d5fa358

Contents?: true

Size: 284 Bytes

Versions: 8

Compression:

Stored size: 284 Bytes

Contents

module Notifiable
  module Concern
  	extend ActiveSupport::Concern

  	def send_notification(notification)
      Notifiable.batch do |b|
        b.add(notification, self)
      end
  	end
  
  	def device_tokens
  		Notifiable::DeviceToken.where(:user_id => self.id)
  	end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
notifiable-rails-0.6.1 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.6.0 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.5.1 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.5.0 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.4.0 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.3.0 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.2.0 lib/notifiable/notifiable_concern.rb
notifiable-rails-0.1.1 lib/notifiable/notifiable_concern.rb