Sha256: a7cd08d377ec78eed9a2e451d60e585f1904a7b956750736e47956b98f167bce

Contents?: true

Size: 912 Bytes

Versions: 5

Compression:

Stored size: 912 Bytes

Contents

require 'notifiable/active_record'
require 'notifiable/notifiable_concern'
require 'notifiable/railtie' if defined?(Rails)
require 'notifiable/engine'
require 'notifiable/notification'
require 'notifiable/notification_status'
require 'notifiable/batch'
require 'notifiable/device_token'
require 'notifiable/notifier_base'

module Notifiable

  mattr_accessor :api_controller_class
  
  mattr_accessor :api_device_token_params
  @@api_device_token_params = [:device_id, :token, :provider]
  
  mattr_accessor :user_class
  
  mattr_accessor :delivery_method
  @@delivery_method = :send
  
  mattr_accessor :notifier_classes
  @@notifier_classes = {}
  
  def self.configure
    yield self
  end
  
  def self.batch(config = {})    
    b = Batch.new(config)
    yield(b)
    b.close
  end

end

module Notifiable
  module Model
    def notifiable(options = {})
      include Notifiable::Concern
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notifiable-rails-0.7.2 lib/notifiable.rb
notifiable-rails-0.7.1 lib/notifiable.rb
notifiable-rails-0.7.0 lib/notifiable.rb
notifiable-rails-0.6.1 lib/notifiable.rb
notifiable-rails-0.6.0 lib/notifiable.rb