diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-08 17:30:04 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-09 04:12:08 -0300 |
commit | bf412c9ec641de6d6bc89a294d02f04c86abc392 (patch) | |
tree | 4e50bfd35586aa50b121f0fc3fcc745351e5a671 /actionpack/lib/action_view/helpers | |
parent | b5b1576aa9c5606a8ac9862b4a903aa5e196ef02 (diff) | |
download | rails-bf412c9ec641de6d6bc89a294d02f04c86abc392.tar.gz rails-bf412c9ec641de6d6bc89a294d02f04c86abc392.tar.bz2 rails-bf412c9ec641de6d6bc89a294d02f04c86abc392.zip |
Clean up initializer and some of the internals of PartialRenderer
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index bde600f6ed..72f162cb20 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -936,6 +936,10 @@ module ActionView @model_name ||= Struct.new(:partial_path).new(name.demodulize.underscore.sub!(/_builder$/, '')) end + def to_model + self + end + def initialize(object_name, object, template, options, proc) @nested_child_index = {} @object_name, @object, @template, @options, @proc = object_name, object, template, options, proc |