aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/ordered_hash_test.rb
diff options
context:
space:
mode:
authorDave Rothlisberger <dave@rothlis.net>2009-12-28 09:21:53 +0000
committerDave Rothlisberger <dave@rothlis.net>2009-12-28 09:21:53 +0000
commit44e8f7cf00d94ddcd9b02471782c76cc6e288739 (patch)
tree33a8928e69e499faf0a7c3db6ababc0ed53090a7 /activesupport/test/ordered_hash_test.rb
parent2ad0618385354939ba6f4fec8472f05a92959751 (diff)
downloadrails-44e8f7cf00d94ddcd9b02471782c76cc6e288739.tar.gz
rails-44e8f7cf00d94ddcd9b02471782c76cc6e288739.tar.bz2
rails-44e8f7cf00d94ddcd9b02471782c76cc6e288739.zip
Corrected documentation of has_many methods collection.build and collection.create.
* collection.create: Clarified the wording (this had always confused me). I used the phrase "base model" to mean the model that specifies the has_many association (this wording is also used previously, e.g. in the "Cardinality and associations" section). * collection.build: You *can* actually call this to add new association records when the base model is a new record. In ActiveRecord::Associations::AssociationCollection, #create_record calls #ensure_owner_is_not_new, but #build_record does not.
Diffstat (limited to 'activesupport/test/ordered_hash_test.rb')
0 files changed, 0 insertions, 0 deletions