aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags/translator.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 16:21:39 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 16:21:39 -0200
commitd80996ea8d58ffee87224ae9df9124f2e5462160 (patch)
tree86b26e2f0881b424c68ff4983d34926eff148b0f /actionview/lib/action_view/helpers/tags/translator.rb
parent44e1cda314cc562f6432f30d0064759c2fdc39b5 (diff)
downloadrails-d80996ea8d58ffee87224ae9df9124f2e5462160.tar.gz
rails-d80996ea8d58ffee87224ae9df9124f2e5462160.tar.bz2
rails-d80996ea8d58ffee87224ae9df9124f2e5462160.zip
Use new hash syntax
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/translator.rb')
-rw-r--r--actionview/lib/action_view/helpers/tags/translator.rb2
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