Class: UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/users_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_user

Instance Method Summary collapse

Methods inherited from ApplicationController

#fake_user

Instance Method Details

#loginObject


4
5
6
7
8
9
10
11
# File 'app/controllers/users_controller.rb', line 4

def 
  if session[:return_to]
    redirect_to session[:return_to]
    session.delete(:return_to)
  else
    redirect_to "/v1/packages"
  end
end