Class: DouguiUsers::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- DouguiUsers::ApplicationController
- Defined in:
- app/controllers/dougui_users/application_controller.rb
Direct Known Subclasses
UserActivatesController, UserResetPasswordsController, UserSessionsController, UsersController
Instance Method Summary collapse
Instance Method Details
#load_user_using_perishable_token ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/dougui_users/application_controller.rb', line 4 def load_user_using_perishable_token @user = User.find_by_perishable_token(params[:id]) unless @user redirect_to root_url, :notice => t('perishabletoken_not_valid', :scope => 'application_controller') end end |