diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index b9839a8500..21f1992d69 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -586,8 +586,8 @@ module ActiveRecord # * collection.empty? - returns true if there are no associated objects. # * collection.size - returns the number of associated objects. # * collection.find - finds an associated object according to the same rules as Base.find. - # * collection.build(attributes = {}) - returns a new object of the collection type that has been instantiated - # with +attributes+ and linked to this object through a foreign key but has not yet been saved. *Note:* This only works if an + # * collection.build(attributes = {}, ...) - returns one or more new objects of the collection type that have been instantiated + # with +attributes+ and linked to this object through a foreign key but have not yet been saved. *Note:* This only works if an # associated object already exists, not if it's nil! # * collection.create(attributes = {}) - returns a new object of the collection type that has been instantiated # with +attributes+ and linked to this object through a foreign key and that has already been saved (if it passed the validation). diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index b8cf4e0eeb..34e4bf9397 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -20,6 +20,7 @@ class Module # # Multiple delegates to the same target are allowed: # class Foo < ActiveRecord::Base + # belongs_to :greeter # delegate :hello, :goodbye, :to => :greeter # end #