Sha256: 257bb72bf5ea85ab00c1a491e2ad12e7978c7e7fe7addba8e5c88458af714df0

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 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

  # 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

1 entries across 1 versions & 1 rubygems

Version Path
notify_user-0.3.2 lib/notify_user.rb