mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
select_* helpers are public methods
This commit is contained in:
parent
5fd530f9de
commit
087d4b5ae4
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue