diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-06-30 22:47:01 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-06-30 23:39:58 +0100 |
commit | cb99c8593a8d5a92378a8167486d5148c1e2dff5 (patch) | |
tree | f8005ccb9de501ea16275c8c17e36196240f587c /activerecord/lib/active_record | |
parent | 0e225ec583db523a8b7da332eaf689149ed60447 (diff) | |
download | rails-cb99c8593a8d5a92378a8167486d5148c1e2dff5.tar.gz rails-cb99c8593a8d5a92378a8167486d5148c1e2dff5.tar.bz2 rails-cb99c8593a8d5a92378a8167486d5148c1e2dff5.zip |
Remove AssociationReflection#create_association and AssociationReflection#create_association! - they are not called from anywhere.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 17 |
1 files changed, 0 insertions, 17 deletions
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 |