diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-05 16:21:39 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-02-05 16:21:39 -0200 |
commit | d80996ea8d58ffee87224ae9df9124f2e5462160 (patch) | |
tree | 86b26e2f0881b424c68ff4983d34926eff148b0f /actionview | |
parent | 44e1cda314cc562f6432f30d0064759c2fdc39b5 (diff) | |
download | rails-d80996ea8d58ffee87224ae9df9124f2e5462160.tar.gz rails-d80996ea8d58ffee87224ae9df9124f2e5462160.tar.bz2 rails-d80996ea8d58ffee87224ae9df9124f2e5462160.zip |
Use new hash syntax
Diffstat (limited to 'actionview')
-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 |