Class: HelenaAdministration::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- HelenaAdministration::ApplicationController
show all
- Defined in:
- app/controllers/helena_administration/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#add_breadcrumb(name, path = nil, options = {}) ⇒ Object
6
7
8
|
# File 'app/controllers/helena_administration/application_controller.rb', line 6
def add_breadcrumb(name, path = nil, options = {})
super(name.presence || t('shared.untitled'), path, options)
end
|
#set_locale ⇒ Object
10
11
12
|
# File 'app/controllers/helena_administration/application_controller.rb', line 10
def set_locale
I18n.locale = params[:locale] || I18n.default_locale
end
|