diff options
author | Kassio Borges <kassioborgesm@gmail.com> | 2014-01-26 20:05:34 -0200 |
---|---|---|
committer | Kassio Borges <kassioborgesm@gmail.com> | 2014-01-27 08:03:46 -0200 |
commit | 433628a45c2f5dd04b115af1b5579dac75255c67 (patch) | |
tree | 891bdb430900df8509d71ed67a78f5fd95c5cda5 /railties/lib | |
parent | 3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f (diff) | |
download | rails-433628a45c2f5dd04b115af1b5579dac75255c67.tar.gz rails-433628a45c2f5dd04b115af1b5579dac75255c67.tar.bz2 rails-433628a45c2f5dd04b115af1b5579dac75255c67.zip |
Rails config for raise on missing translations
Add a config to setup whether raise exception for missing translation or
not.
Diffstat (limited to 'railties/lib')
-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 |