Class: SessionsController

Inherits:
ApplicationController show all
Defined in:
lib/nexmo_developer/app/controllers/sessions_controller.rb

Constant Summary

Constants included from ApplicationHelper

ApplicationHelper::CONFIG

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_admin!, #not_found, #redirect_vonage_domain

Methods included from ApplicationHelper

#active_sidenav_item, #canonical_base, #canonical_base_from_config, #canonical_path, #canonical_url, #dashboard_cookie, #search_enabled?, #set_utm_cookie, #theme

Instance Method Details

#destroyObject



2
3
4
5
6
# File 'lib/nexmo_developer/app/controllers/sessions_controller.rb', line 2

def destroy
  sign_out
  cookies.delete :feedback_author_id
  redirect_back(fallback_location: root_path)
end

#set_user_localeObject



8
9
10
11
# File 'lib/nexmo_developer/app/controllers/sessions_controller.rb', line 8

def set_user_locale
  session[:locale] = params[:preferred_locale]
  @path = LocaleRedirector.new(request, params).path
end