initi
This commit is contained in:
parent
adb61a9f1a
commit
42a7fc0bdd
@ -18,7 +18,7 @@ class Public::MenuItemsController < ApplicationController
|
||||
|
||||
@lang = LangSite.find_by_slug(params[:lang])
|
||||
else
|
||||
@lang = LangSite.first
|
||||
@lang = LangSite.last
|
||||
|
||||
end
|
||||
|
||||
|
@ -18,7 +18,7 @@ module TestingApp
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :fr
|
||||
config.i18n.default_locale = :en
|
||||
|
||||
# Do not swallow errors in after_commit/after_rollback callbacks.
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user