Class: Admin::DashboardController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::DashboardController
- Defined in:
- app/controllers/admin/dashboard_controller.rb
Instance Method Summary collapse
Instance Method Details
#change_lang ⇒ Object
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 |
#index ⇒ Object
2 |
# File 'app/controllers/admin/dashboard_controller.rb', line 2 def index; end |