Gets rid of annoying deprecation warning for locales checking

This commit is contained in:
Philipp Bayer
2014-01-18 11:03:12 +10:00
parent f48039c2a2
commit cfa3720aeb

View File

@@ -17,7 +17,7 @@ module Snpr
# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)
config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += %W(#{config.root}/lib)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
@@ -33,6 +33,9 @@ module Snpr
# 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
#
# We don't have any locales, don't check for them (gets rid of warning)
I18n.enforce_available_locales = false
# JavaScript files you want as :defaults (application.js is always included).
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)