aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorSameer Rahmani <lxsameer@gnu.org>2015-12-01 19:19:44 +0330
committerSameer Rahmani <lxsameer@gnu.org>2015-12-18 22:45:05 +0330
commitc1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d (patch)
treec2fef94c1127e7732ed7ab87728d522960fbdad6 /guides/source/configuring.md
parentcd53b05be8f74dfc9c872eb1e84cd024e754f48d (diff)
downloadrails-c1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d.tar.gz
rails-c1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d.tar.bz2
rails-c1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d.zip
debug_missing_translation configuration added to action_view
`I18n.translate` helper will wrap the missing translation keys in a <span> tag only if `debug_missing_translation` configuration has a truthy value. Default value is `true`. For example in `application.rb`: # in order to turn off missing key wrapping config.action_view.debug_missing_translation = false
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index ba2fb4c1cf..5f4fd0f31b 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -461,6 +461,8 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`.
* `config.action_view.automatically_disable_submit_tag` determines whether
submit_tag should automatically disable on click, this defaults to true.
+* `config.action_view.debug_missing_translation` determins whether to wrap the missing translations key in a `<span>` tag or not. This defaults to true.
+
### Configuring Action Mailer
There are a number of settings available on `config.action_mailer`: