]> source.dussan.org Git - redmine.git/commitdiff
Exclude fields_for in the TabularFormBuilder, it has a different method
authorEric Davis <edavis@littlestreamsoftware.com>
Sun, 20 Jun 2010 19:03:09 +0000 (19:03 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sun, 20 Jun 2010 19:03:09 +0000 (19:03 +0000)
signature. #5416

Contributed by Jean-Baptiste Barth

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3804 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tabular_form_builder.rb

index 8728266ba02352d8a5e4f38ea756b6af75269479..8dc5265d5303cea918e3ccd1c04dea0532cd61fb 100644 (file)
@@ -25,7 +25,7 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilder
     super
   end      
       
-  (field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector|
+  (field_helpers - %w(radio_button hidden_field fields_for) + %w(date_select)).each do |selector|
     src = <<-END_SRC
     def #{selector}(field, options = {}) 
       label_for_field(field, options) + super