Correct methods defined by TabularFormBuilder

`ActionView::Helpers::FormBuilder.field_helpers` is now an Array of
symbols.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2229/head
Alex Coles 10 years ago
parent 69d354ccd3
commit 50840f0753
  1. 2
      lib/tabular_form_builder.rb

@ -38,7 +38,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
super super
end end
(field_helpers - %w(radio_button hidden_field fields_for label) + %w(date_select)).each do |selector| (field_helpers - %i(radio_button hidden_field fields_for label) + %i(date_select)).each do |selector|
src = <<-END_SRC src = <<-END_SRC
def #{selector}(field, options = {}) def #{selector}(field, options = {})
if options[:multi_locale] || options[:single_locale] if options[:multi_locale] || options[:single_locale]

Loading…
Cancel
Save