Sha256: 89a722be54cc98745f7db7be1f600a475f1a7cbb478423575673f380b4530eac

Contents?: true

Size: 991 Bytes

Versions: 6

Compression:

Stored size: 991 Bytes

Contents

require "kaminari"
require "notify_user/railtie"
require "notify_user/engine"

module NotifyUser

  mattr_accessor :mailer_sender
  @@mailer_sender = nil

  mattr_accessor :authentication_method
  @@authentication_method = nil

  mattr_accessor :current_user_method
  @@current_user_method = nil

  mattr_accessor :unsubscribable_notifications
  @@unsubscribable_notifications = nil

  # Provider for APNS:
  mattr_accessor :apns_provider
  @@apns_provider = nil

  # Number of connections Houston will maintain to APNS:
  mattr_accessor :connection_pool_size
  @@connection_pool_size = nil

  # Time in seconds Houston will wait for a free connection before failing:
  mattr_accessor :connection_pool_timeout
  @@connection_pool_timeout = nil

  # Used to set up NotifyUser from the initializer.
  def self.setup
    yield self
  end

  def self.send_notification(type)
    type.camelize.constantize.new
  end
end

Gem.find_files("notify_user/channels/**/*.rb").each { |path| require path }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
notify_user-0.3.1 lib/notify_user.rb
notify_user-0.1.4 lib/notify_user.rb
notify_user-0.1.3 lib/notify_user.rb
notify_user-0.1.2 lib/notify_user.rb
notify_user-0.1.1 lib/notify_user.rb
notify_user-0.0.30 lib/notify_user.rb