Permalink
Browse files

Revert "Merge pull request #7661 from ernie/build-join-records-on-uns…

…aved-hmt"

This reverts commit ee43989.

It would appear that #7661 had unintended consequences to the API. Until
we can sort those out, this should not be in 3.2.x, and wait for 4.0.0.

Conflicts:
	activerecord/CHANGELOG.md
  • Loading branch information...
1 parent 1dccd44 commit 56c7872399828a7b95078d9cffd625a68e30758e @ernie ernie committed with snowblink Jan 11, 2013
@@ -38,20 +38,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
@@ -851,11 +851,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 56c7872

Please sign in to comment.