set config.i18n.enforce_available_locales to avoid a deprecation warning

This commit is contained in:
joshua stein 2013-12-31 16:00:55 -06:00
parent 581a1ab7b8
commit bcef7acaf6

View file

@ -22,6 +22,7 @@ module Lobsters
# 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 = :de
config.i18n.enforce_available_locales = true
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models