diff options
| author | Rick Olson <technoweenie@gmail.com> | 2007-07-25 03:05:55 +0000 |
|---|---|---|
| committer | Rick Olson <technoweenie@gmail.com> | 2007-07-25 03:05:55 +0000 |
| commit | b49fcde7e50c8eb378e7b1ae08f65c70f6de20e4 (patch) | |
| tree | bd54d5b6dfdb37e9557263cd70fb11bbe960fee7 | |
| parent | 2d7afe4456551767f2a8f003aeba41329a259179 (diff) | |
| download | rails-b49fcde7e50c8eb378e7b1ae08f65c70f6de20e4.tar.gz rails-b49fcde7e50c8eb378e7b1ae08f65c70f6de20e4.tar.bz2 rails-b49fcde7e50c8eb378e7b1ae08f65c70f6de20e4.zip | |
tiny doc patches [lifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
| -rwxr-xr-x | activerecord/lib/active_record/associations.rb | 4 | ||||
| -rw-r--r-- | activesupport/lib/active_support/core_ext/module/delegation.rb | 1 |
2 files changed, 3 insertions, 2 deletions
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 # * <tt>collection.empty?</tt> - returns true if there are no associated objects. # * <tt>collection.size</tt> - returns the number of associated objects. # * <tt>collection.find</tt> - finds an associated object according to the same rules as Base.find. - # * <tt>collection.build(attributes = {})</tt> - 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 + # * <tt>collection.build(attributes = {}, ...)</tt> - 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! # * <tt>collection.create(attributes = {})</tt> - 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 # |
