Skip to content
Browse files

Fix typo: `has_many :pets`, not `pets :has_many`.

  • Loading branch information...
1 parent 80e90b0 commit e7461500e7c77444ea58ee3fc78c143c6dd8e96f @Peeja Peeja 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 e746150

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