diff options
author | Tobias Pfeiffer <tobias.pfeiffer@student.hpi.uni-potsdam.de> | 2014-02-24 17:05:42 +0100 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-31 16:33:42 -0200 |
commit | f0570a3d3fa85ba0153d61c90bad6db648144256 (patch) | |
tree | 3015b5ed5456653d003705f9ffbcba6ca8c85f8f /actionview/lib | |
parent | ecb31131fb7c917baa9d53fde3021fb037861808 (diff) | |
download | rails-f0570a3d3fa85ba0153d61c90bad6db648144256.tar.gz rails-f0570a3d3fa85ba0153d61c90bad6db648144256.tar.bz2 rails-f0570a3d3fa85ba0153d61c90bad6db648144256.zip |
Honor public/private in ActionView::Helpers::Tags::Base#value
* use public_send instead of send to avoid calling private
methods in form helpers
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/base.rb b/actionview/lib/action_view/helpers/tags/base.rb index 8607da301c..f8abb19698 100644 --- a/actionview/lib/action_view/helpers/tags/base.rb +++ b/actionview/lib/action_view/helpers/tags/base.rb @@ -25,7 +25,7 @@ module ActionView private def value(object) - object.send @method_name if object + object.public_send @method_name if object end def value_before_type_cast(object) |