Permalink
Browse files

Don't create_association_with_parent if parent is new.

  • Loading branch information...
1 parent 1000e7c commit 7192aa6ea94c9f3341d1d26fb6c3934f564aefb6 @r-stu31 committed Feb 29, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/active_scaffold/actions/create.rb
@@ -83,7 +83,6 @@ def do_new
@record = new_model
apply_constraints_to_record(@record)
if nested?
- create_association_with_parent(@record)
register_constraints_with_action_columns(nested.constrained_fields)
end
@record

0 comments on commit 7192aa6

Please sign in to comment.