aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/tags/placeholderable.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 16:28:12 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 16:28:12 -0200
commit4b4e2281a08b827bbf997719bfe4a5b3085c3d68 (patch)
treea87c5d04a75e7465c8b4d62554ae8c3562ae3267 /actionview/lib/action_view/helpers/tags/placeholderable.rb
parent003c0cda26e3fa9c3362ac7e5b5faa6236b44aad (diff)
downloadrails-4b4e2281a08b827bbf997719bfe4a5b3085c3d68.tar.gz
rails-4b4e2281a08b827bbf997719bfe4a5b3085c3d68.tar.bz2
rails-4b4e2281a08b827bbf997719bfe4a5b3085c3d68.zip
Rename method to make explicit its intention
call is too generic
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/placeholderable.rb')
-rw-r--r--actionview/lib/action_view/helpers/tags/placeholderable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/placeholderable.rb b/actionview/lib/action_view/helpers/tags/placeholderable.rb
index db16ea7b0b..cf7b117614 100644
--- a/actionview/lib/action_view/helpers/tags/placeholderable.rb
+++ b/actionview/lib/action_view/helpers/tags/placeholderable.rb
@@ -11,7 +11,7 @@ module ActionView
placeholder ||= Tags::Translator
.new(object, @object_name, method_and_value, scope: "helpers.placeholder")
- .call
+ .translate
placeholder ||= @method_name.humanize
@options[:placeholder] = placeholder
end