Sha256: 91e16e099ee4274d608fae8e0ed66e87a9de65cd32610e3d66279dbd920ccee4

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

Notifiable.configure do |config|

  #
	# Rails Engine
  #
  
  # The controller class that the DeviceTokenController should extend
	config.api_controller_class = ApplicationController
  
  # The class representing the holder of the device
	config.user_class = User

  #
	# APNS
  #
  
  # The name of the Notifier::Base subclass used for this notifier 
  config.apns_class_name = 'Notifiable::Notifier::APNS::GrocerStream'
  
  # The path to your apns private key
	config.apns_certificate = File.join(Rails.root, 'config', 'apns-development.pem')
  
  # The passphrase for your private key
  # Defaults to nil
	#config.apns_passphrase = 'YOUR-PASSPHRASE-HERE'
	
  # The apns gateway to use
  # Defaults to 'gateway.push.apple.com', can also be 'gateway.sandbox.push.apple.com'
  #config.apns_gateway = 'gateway.push.apple.com'
	
  #
	# GCM
  #
  
  # The name of the Notifier::Base subclass used for this notifier 
  config.gcm_class_name = 'Notifiable::Notifier::GCM::GCMBatch'
  
  # Your GCM API Key
	#config.gcm_api_key = 'YOUR-KEY-HERE'
  
  # The batch size
  # Defaults to 1000
  #config.gcm_batch_size = 1000
  
  #
  # Global
  #
  
  # Set the delivery method to test, preventing notifications from being sent
  # Defaults to :send
  #config.delivery_method = :test

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notifiable-rails-0.2.0 spec/test_app/config/initializers/notifiable.rb
notifiable-rails-0.1.1 spec/test_app/config/initializers/notifiable.rb
notifiable-rails-0.1.0 spec/test_app/config/initializers/notifiable.rb