diff options
author | yui-knk <spiketeika@gmail.com> | 2017-07-14 21:53:12 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2017-09-05 18:18:29 +0900 |
commit | 530b5fea8f3e04c45a20ff3dcc8d473a6d25c1b4 (patch) | |
tree | 048b035c3d61232252cd4e2eb30078ede5c49a17 /actionview/lib/action_view/helpers/tags/radio_button.rb | |
parent | c1f9fa8c69590222fac43d58bf64ef4a1225d7ce (diff) | |
download | rails-530b5fea8f3e04c45a20ff3dcc8d473a6d25c1b4.tar.gz rails-530b5fea8f3e04c45a20ff3dcc8d473a6d25c1b4.tar.bz2 rails-530b5fea8f3e04c45a20ff3dcc8d473a6d25c1b4.zip |
Do not pass an instance variable to a private method
`ActionView::Helpers::Tags::Base` has `@object` and
all passed arguments for
* `#value`
* `#value_before_type_cast`
* `#value_came_from_user?`
are `@object`, so we do not need to pass arguments in this case.
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/radio_button.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/radio_button.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/radio_button.rb b/actionview/lib/action_view/helpers/tags/radio_button.rb index 782263ac5b..152b6a9edf 100644 --- a/actionview/lib/action_view/helpers/tags/radio_button.rb +++ b/actionview/lib/action_view/helpers/tags/radio_button.rb @@ -15,7 +15,7 @@ module ActionView options = @options.stringify_keys options["type"] = "radio" options["value"] = @tag_value - options["checked"] = "checked" if input_checked?(object, options) + options["checked"] = "checked" if input_checked?(options) add_default_name_and_id_for_value(@tag_value, options) tag("input", options) end |