Skip to content
Browse files

Merge pull request #12629 from Peeja/has_many-pets-typo

Fix typo: `has_many :pets`, not `pets :has_many`.
  • Loading branch information...
2 parents 80e90b0 + e746150 commit 3e5bb8693ac8583e32f7080db62fb23a280205cf @guilleiguaran guilleiguaran committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/collection_proxy.rb
View
2 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -281,7 +281,7 @@ def create!(attributes = {}, &block)
# so method calls may be chained.
#
# class Person < ActiveRecord::Base
- # pets :has_many
+ # has_many :pets
# end
#
# person.pets.size # => 0

0 comments on commit 3e5bb86

Please sign in to comment.
Something went wrong with that request. Please try again.