Skip to content

Commit

Permalink
Turn off enforce_available_locales, working around performance regres…
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanM authored and willrjmarshall committed May 9, 2014
1 parent 0437910 commit d96274d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = 'en'

I18n.config.enforce_available_locales = true
# Setting this to true causes a performance regression in Rails 3.2.17
# When we're on a version with the fix below, we can set it to true
# https://github.com/svenfuchs/i18n/issues/230
I18n.config.enforce_available_locales = false

# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
Expand Down

0 comments on commit d96274d

Please sign in to comment.