Skip to content

Commit

Permalink
Don't double assign attributes - closes rails#1467.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeltrix committed Jun 3, 2011
1 parent de63942 commit 67f5c07
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ def create_scope
def build_record(attributes, options)
record = reflection.build_association(attributes, options)
record.assign_attributes(create_scope.except(*record.changed), :without_protection => true)
record.assign_attributes(attributes, options)
record
end

Expand Down

0 comments on commit 67f5c07

Please sign in to comment.