Class: Back::BackController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/lato_blog/back/back_controller.rb

Instance Method Summary collapse

Instance Method Details

#switch_current_languageObject

This function switch the default language used by the system and redirect to the same user page.



16
17
18
19
20
21
22
# File 'app/controllers/lato_blog/back/back_controller.rb', line 16

def switch_current_language
  set_current_language params[:language]

  respond_to do |format|
    format.js
  end
end