Class: Kuhsaft::Cms::AdminController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Kuhsaft::Cms::AdminController
show all
- Defined in:
- app/controllers/kuhsaft/cms/admin_controller.rb
Instance Method Summary
collapse
Instance Method Details
#default_url_options ⇒ Object
13
14
15
|
# File 'app/controllers/kuhsaft/cms/admin_controller.rb', line 13
def default_url_options
{ content_locale: I18n.locale }.merge(super)
end
|
#set_content_locale ⇒ Object
8
9
10
11
|
# File 'app/controllers/kuhsaft/cms/admin_controller.rb', line 8
def set_content_locale
return if params[:content_locale].blank?
I18n.locale = params[:content_locale]
end
|