Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reverting changes from #7661 on master

  • Loading branch information...
commit c16ff327d163b464dc98259c64e83b072dfcc436 1 parent 78db16d
@smasry authored
View
14 activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -37,20 +37,6 @@ def concat(*records)
super
end
- def concat_records(records)
- ensure_not_nested
-
- records = super
-
- if owner.new_record? && records
- records.flatten.each do |record|
- build_through_record(record)
- end
- end
-
- records
- end
-
def insert_record(record, validate = true, raise = false)
ensure_not_nested
View
5 activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -833,11 +833,6 @@ def test_save_should_not_raise_exception_when_join_record_has_errors
end
end
- def test_assign_array_to_new_record_builds_join_records
- c = Category.new(:name => 'Fishing', :authors => [Author.first])
- assert_equal 1, c.categorizations.size
- end
-
def test_create_bang_should_raise_exception_when_join_record_has_errors
repair_validations(Categorization) do
Categorization.validate { |r| r.errors[:base] << 'Invalid Categorization' }

0 comments on commit c16ff32

Please sign in to comment.
Something went wrong with that request. Please try again.