diff options
Diffstat (limited to 'actionview/lib/action_view/helpers/tags')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/translator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/translator.rb b/actionview/lib/action_view/helpers/tags/translator.rb index 243c287b2f..a65bd35f4d 100644 --- a/actionview/lib/action_view/helpers/tags/translator.rb +++ b/actionview/lib/action_view/helpers/tags/translator.rb @@ -10,7 +10,7 @@ module ActionView end def call - translated_attribute = I18n.t("#{object_name}.#{method_and_value}", :default => i18n_default, :scope => i18n_scope).presence + translated_attribute = I18n.t("#{object_name}.#{method_and_value}", default: i18n_default, scope: i18n_scope).presence translated_attribute || human_attribute_name end |