From 087d4b5ae4ca2958cb7ba7250a44408128ad6b14 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Fri, 2 Oct 2020 14:28:41 +0900 Subject: [PATCH] select_* helpers are public methods --- actionview/lib/action_view/helpers/date_helper.rb | 2 +- actionview/lib/action_view/helpers/tags/date_select.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index e553cf55ba..a79ad8ee6a 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -1138,7 +1138,7 @@ module ActionView first_visible = order.find { |type| !@options[:"discard_#{type}"] } order.reverse_each do |type| separator = separator(type) unless type == first_visible # don't add before first visible field - select.insert(0, separator.to_s + send("select_#{type}").to_s) + select.insert(0, separator.to_s + public_send("select_#{type}").to_s) end select.html_safe end diff --git a/actionview/lib/action_view/helpers/tags/date_select.rb b/actionview/lib/action_view/helpers/tags/date_select.rb index a507dbdd00..6f36795218 100644 --- a/actionview/lib/action_view/helpers/tags/date_select.rb +++ b/actionview/lib/action_view/helpers/tags/date_select.rb @@ -13,7 +13,7 @@ module ActionView end def render - error_wrapping(datetime_selector(@options, @html_options).send("select_#{select_type}").html_safe) + error_wrapping(datetime_selector(@options, @html_options).public_send("select_#{select_type}").html_safe) end class << self