aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-03-02 22:44:53 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-03-02 22:44:53 +0300
commit4e8fbc0c229327b1d2986c30faa497f699a4b122 (patch)
treed6d0d968a8b7d9a3bfe8e3605bd2b047f75a040e /actionpack/lib/action_view/helpers/form_helper.rb
parentb5c939dcb3979901fc31f8c79a4fde58999052e8 (diff)
downloadrails-4e8fbc0c229327b1d2986c30faa497f699a4b122.tar.gz
rails-4e8fbc0c229327b1d2986c30faa497f699a4b122.tar.bz2
rails-4e8fbc0c229327b1d2986c30faa497f699a4b122.zip
simplify namespace assignment in fields_for
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 53ae8b66da..7492ef56c6 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1016,7 +1016,7 @@ module ActionView
fields_options, record_object = record_object, nil if record_object.is_a?(Hash) && record_object.extractable_options?
fields_options[:builder] ||= options[:builder]
fields_options[:parent_builder] = self
- fields_options[:namespace] = fields_options[:parent_builder].options[:namespace]
+ fields_options[:namespace] = options[:namespace]
case record_name
when String, Symbol