Class: Admin::DashboardController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#change_langObject



4
5
6
7
8
9
# File 'app/controllers/admin/dashboard_controller.rb', line 4

def change_lang
  if params[:lang] && I18n.available_locales.include?(params[:lang].to_sym)
    session[:lang] = params[:lang].to_sym
  end
  redirect_to(:back)
end

#indexObject



2
# File 'app/controllers/admin/dashboard_controller.rb', line 2

def index; end