Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove AssociationReflection#create_association and AssociationReflec…

…tion#create_association! - they are not called from anywhere.
  • Loading branch information...
commit cb99c8593a8d5a92378a8167486d5148c1e2dff5 1 parent 0e225ec
@jonleighton jonleighton authored
Showing with 0 additions and 17 deletions.
  1. +0 −17 activerecord/lib/active_record/reflection.rb
View
17 activerecord/lib/active_record/reflection.rb
@@ -179,23 +179,6 @@ def build_association(*options, &block)
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
Please sign in to comment.
Something went wrong with that request. Please try again.