From c1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Tue, 1 Dec 2015 19:19:44 +0330 Subject: debug_missing_translation configuration added to action_view `I18n.translate` helper will wrap the missing translation keys in a 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 --- actionview/lib/action_view/railtie.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview/lib/action_view/railtie.rb') diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index e829d86c99..59d869d92d 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -6,6 +6,7 @@ module ActionView class Railtie < Rails::Railtie # :nodoc: config.action_view = ActiveSupport::OrderedOptions.new config.action_view.embed_authenticity_token_in_remote_forms = false + config.action_view.debug_missing_translation = true config.eager_load_namespaces << ActionView -- cgit v1.2.3