Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we always have a model now

  • Loading branch information...
commit 8c155a656201a4b39a7b671bb27b081fa34f268b 1 parent 50e6b69
@tenderlove tenderlove authored
View
2  activerecord/lib/active_record/associations/join_dependency.rb
@@ -230,7 +230,7 @@ def construct_model(record, join_part, row)
if join_part.reflection.collection?
model = join_part.instantiate(row)
other = record.association(join_part.reflection.name)
- other.target.push(model) if model
+ other.target.push(model)
other.set_inverse_instance(model)
else
return record.association(join_part.reflection.name).target if record.association_cache.key?(join_part.reflection.name)
Please sign in to comment.
Something went wrong with that request. Please try again.