diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-27 10:04:26 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-27 10:04:26 -0800 |
commit | d57ce232a885b21e1d6d1f9fbf60bc5908ad880d (patch) | |
tree | f62345d1f58cc689c1a113773cff54c12c607a94 /railties | |
parent | 31616068032beb537768787ff3a206b062eb192e (diff) | |
parent | 433628a45c2f5dd04b115af1b5579dac75255c67 (diff) | |
download | rails-d57ce232a885b21e1d6d1f9fbf60bc5908ad880d.tar.gz rails-d57ce232a885b21e1d6d1f9fbf60bc5908ad880d.tar.bz2 rails-d57ce232a885b21e1d6d1f9fbf60bc5908ad880d.zip |
Merge pull request #13832 from kassio/setup-for-raise-missing-translations
Rails config for raise on missing translations
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt | 3 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index cce4743a33..de12565a73 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -35,4 +35,7 @@ Rails.application.configure do # Raises helpful error messages. config.assets.raise_runtime_errors = true <%- end -%> + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true end diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt index a90361725b..053f5b66d7 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt @@ -33,4 +33,7 @@ Rails.application.configure do # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true end |