From cb99c8593a8d5a92378a8167486d5148c1e2dff5 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Thu, 30 Jun 2011 22:47:01 +0100 Subject: Remove AssociationReflection#create_association and AssociationReflection#create_association! - they are not called from anywhere. --- activerecord/lib/active_record/reflection.rb | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index cfb41fd28c..894d56b3a0 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -179,23 +179,6 @@ module ActiveRecord klass.new(*options, &block) end - # Creates a new instance of the associated class, and immediately saves it - # with ActiveRecord::Base#save. +options+ will be passed to the class's - # creation method. Returns the newly created object. - def create_association(*options) - klass.create(*options) - end - - # Creates a new instance of the associated class, and immediately saves it - # with ActiveRecord::Base#save!. +options+ will be passed to the class's - # creation method. If the created record doesn't pass validations, then an - # exception will be raised. - # - # Returns the newly created object. - def create_association!(*options) - klass.create!(*options) - end - def table_name @table_name ||= klass.table_name end -- cgit v1.2.3