Module: DeviseSecurityExtension::Patches

Defined in:
lib/devise_security_extension/patches.rb,
lib/devise_security_extension/patches/unlocks_controller_captcha.rb,
lib/devise_security_extension/patches/sessions_controller_captcha.rb,
lib/devise_security_extension/patches/passwords_controller_captcha.rb,
lib/devise_security_extension/patches/confirmations_controller_captcha.rb,
lib/devise_security_extension/patches/registrations_controller_captcha.rb

Defined Under Namespace

Modules: ConfirmationsControllerCaptcha, PasswordsControllerCaptcha, RegistrationsControllerCaptcha, SessionsControllerCaptcha, UnlocksControllerCaptcha

Class Method Summary collapse

Class Method Details

.applyObject



10
11
12
13
14
15
16
# File 'lib/devise_security_extension/patches.rb', line 10

def apply
  Devise::PasswordsController.send(:include, Patches::PasswordsControllerCaptcha) if Devise.captcha_for_recover
  Devise::UnlocksController.send(:include, Patches::UnlocksControllerCaptcha) if Devise.captcha_for_unlock
  Devise::RegistrationsController.send(:include, Patches::RegistrationsControllerCaptcha) if Devise.
  Devise::SessionsController.send(:include, Patches::SessionsControllerCaptcha) if Devise.
  Devise::ConfirmationsController.send(:include, Patches::ConfirmationsControllerCaptcha) if Devise.captcha_for_confirmation
end