app/controllers/devise/unlocks_controller.rb in devise-1.1.rc2 vs app/controllers/devise/unlocks_controller.rb in devise-1.1.0
- old
+ new
@@ -1,7 +1,6 @@
class Devise::UnlocksController < ApplicationController
- prepend_before_filter :ensure_email_as_unlock_strategy
prepend_before_filter :require_no_authentication
include Devise::Controllers::InternalHelpers
# GET /resource/unlock/new
def new
@@ -29,13 +28,7 @@
set_flash_message :notice, :unlocked
sign_in_and_redirect(resource_name, resource)
else
render_with_scope :new
end
- end
-
- protected
-
- def ensure_email_as_unlock_strategy
- raise ActionController::UnknownAction unless resource_class.unlock_strategy_enabled?(:email)
end
end