[#711] Fix TabularFormBuilder on Ruby 1.9.2
This commit is contained in:
parent
0462fa973b
commit
d15c851bb3
|
@ -22,7 +22,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
(field_helpers - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector|
|
(field_helpers.map(&:to_s) - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector|
|
||||||
src = <<-END_SRC
|
src = <<-END_SRC
|
||||||
def #{selector}(field, options = {})
|
def #{selector}(field, options = {})
|
||||||
label_for_field(field, options) + super
|
label_for_field(field, options) + super
|
||||||
|
|
Loading…
Reference in New Issue