Class: TokensController

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

Instance Method Summary (collapse)

Methods inherited from ApplicationController

#after_sign_in_path_for, #clear_gc_stats, #ensure_http_referer_is_set, #ensure_page, #grammatical_gender, #redirect_unless_admin, #set_git_header, #set_grammatical_gender, #set_header_data, #set_invites, #set_locale, #which_action_and_user

Instance Method Details

- (Object) create



2
3
4
5
6
# File 'app/controllers/tokens_controller.rb', line 2

def create
  current_user.reset_authentication_token!
  current_user.authentication_token
  redirect_to token_path, :notice => "Authentication token reset."
end

- (Object) show



7
8
# File 'app/controllers/tokens_controller.rb', line 7

def show
end