Sha256: 87e2fdb3559f0597914a91d8d51caf7f55ec2ccaba6b9891949560a37ae1e778

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-production.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 lib/generators/notifiable/install/templates/initializer.rb
notifiable-rails-0.1.1 lib/generators/notifiable/install/templates/initializer.rb
notifiable-rails-0.1.0 lib/generators/notifiable/install/templates/initializer.rb