From f6b12c11cd3a6df8525dd16ec093ec473813489e Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 6 Apr 2008 00:27:12 +0000 Subject: Refactor HasManyThroughAssociation to inherit from HasManyAssociation. Association callbacks and _ids= now work with hm:t. Closes #11516 [rubyruy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../active_record/associations/has_and_belongs_to_many_association.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb') diff --git a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb index 0edb2397ee..8ce5b83831 100644 --- a/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb +++ b/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb @@ -6,10 +6,6 @@ module ActiveRecord construct_sql end - def build(attributes = {}) - build_record(attributes) - end - def create(attributes = {}) create_record(attributes) { |record| insert_record(record) } end -- cgit v1.2.3