Class: HelenaAdministration::ApplicationController

Inherits:
ActionController::Base
  • Object
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_localeObject



10
11
12
# File 'app/controllers/helena_administration/application_controller.rb', line 10

def set_locale
  I18n.locale = params[:locale] || I18n.default_locale
end