Module: CastleDevise::Patches

Defined in:
lib/castle_devise/patches.rb,
lib/castle_devise/patches/passwords_controller.rb,
lib/castle_devise/patches/registrations_controller.rb

Defined Under Namespace

Modules: PasswordsController, RegistrationsController

Class Method Summary collapse

Class Method Details

.applyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Applies monkey-patches to Devise controllers



8
9
10
11
# File 'lib/castle_devise/patches.rb', line 8

def apply
  Devise::RegistrationsController.send(:prepend, Patches::RegistrationsController)
  Devise::PasswordsController.send(:prepend, Patches::PasswordsController)
end