Class: Droom::Users::PasswordsController
- Inherits:
-
Devise::PasswordsController
- Object
- Devise::PasswordsController
- Droom::Users::PasswordsController
- Defined in:
- app/controllers/droom/users/passwords_controller.rb
Instance Method Summary collapse
- #after_resetting_password_path_for(resource) ⇒ Object
- #after_sending_reset_password_instructions_path_for(resource_name) ⇒ Object
- #completed ⇒ Object
- #remember_original_destination ⇒ Object
- #show ⇒ Object
-
#store_full_location_for(resource_or_scope, location) ⇒ Object
Bypass the usual store_location_for because we need to keep the full URI.
Instance Method Details
#after_resetting_password_path_for(resource) ⇒ Object
16 17 18 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 16 def after_resetting_password_path_for(resource) droom.complete_confirmation_url end |
#after_sending_reset_password_instructions_path_for(resource_name) ⇒ Object
20 21 22 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 20 def after_sending_reset_password_instructions_path_for(resource_name) droom.show_confirmation_url end |
#completed ⇒ Object
12 13 14 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 12 def completed render end |
#remember_original_destination ⇒ Object
24 25 26 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 24 def remember_original_destination store_full_location_for(:user, params[:backto]) end |
#show ⇒ Object
8 9 10 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 8 def show render end |
#store_full_location_for(resource_or_scope, location) ⇒ Object
Bypass the usual store_location_for because we need to keep the full URI.
31 32 33 34 35 36 |
# File 'app/controllers/droom/users/passwords_controller.rb', line 31 def store_full_location_for(resource_or_scope, location) session_key = stored_location_key_for(resource_or_scope) if location session[session_key] = location end end |