Class: DouguiUsers::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/dougui_users/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#load_user_using_perishable_tokenObject



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