ruby on rails执行RAILS_ENV=production rake assets:precompile报warning

ruby on rails执行RAILS_ENV=production rake assets:precompile报warning如下:

[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.


解决方案:

application.rb中加入config.i18n.enforce_available_locales = true 


参考资料:
http://stackoverflow.com/questions/20361428/rails-i18n-validation-deprecation-warning



你可能感兴趣的:(ruby on rails执行RAILS_ENV=production rake assets:precompile报warning)