Module: DeviseRevokable

Defined in:
lib/devise_revokable.rb,
lib/devise_revokable/mailer.rb,
lib/devise_revokable/schema.rb,
lib/devise_revokable/version.rb,
lib/devise_revokable/controllers/url_helpers.rb

Defined Under Namespace

Modules: Controllers, Mailer, Schema Classes: Engine

Constant Summary collapse

VERSION =
'0.0.3'
@@mailer =
nil

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.send_mail!(method_name, resource) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/devise_revokable.rb', line 17

def self.send_mail!(method_name, resource)
  if @@mailer.respond_to?(:call)
    @@mailer.call(method_name, resource)
  else
    ::Devise.mailer.send(method_name, resource).deliver
  end
end

Instance Method Details

#mailerObject

Allow for another mailer besides Devise



14
# File 'lib/devise_revokable.rb', line 14

mattr_accessor :mailer