Skip to content
Browse files

Expose object and object_name from the FormBuilder [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a04a849 commit a8a1d11d77694d6e49552de9291b4bfdb299494f @dhh dhh committed Feb 12, 2006
Showing with 4 additions and 2 deletions.
  1. +4 −2 actionpack/lib/action_view/helpers/form_helper.rb
View
6 actionpack/lib/action_view/helpers/form_helper.rb
@@ -371,11 +371,13 @@ def tag_id_with_index(index)
end
end
- class FormBuilder
+ class FormBuilder #:nodoc:
# The methods which wrap a form helper call.
class_inheritable_accessor :field_helpers
self.field_helpers = (FormHelper.instance_methods - ['form_for'])
-
+
+ attr_accessor :object_name, :object
+
def initialize(object_name, object, template, options, proc)
@object_name, @object, @template, @options, @proc = object_name, object, template, options, proc
end

0 comments on commit a8a1d11

Please sign in to comment.
Something went wrong with that request. Please try again.