Sha256: b85a906a15e2357f24042ce5138dede17d60e28f8909f02b0f60b1a8fa3970f0

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require "kaminari"

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

  # 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.0.1 lib/notify_user.rb