diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-10-24 22:19:38 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-24 22:20:08 +0530 |
commit | e7f06a8d50b8418c265b859c5e7809bcf0d67cf2 (patch) | |
tree | d19ffacd49dc97b42d74d1a5d94829b70780659a /railties/doc/guides/source | |
parent | ec5070c2e2d46c5f209da99bb2f3b455ec02c349 (diff) | |
download | rails-e7f06a8d50b8418c265b859c5e7809bcf0d67cf2.tar.gz rails-e7f06a8d50b8418c265b859c5e7809bcf0d67cf2.tar.bz2 rails-e7f06a8d50b8418c265b859c5e7809bcf0d67cf2.zip |
Fix release notes
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r-- | railties/doc/guides/source/2_2_release_notes.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/doc/guides/source/2_2_release_notes.txt b/railties/doc/guides/source/2_2_release_notes.txt index 00243d6941..d5eeefb16f 100644 --- a/railties/doc/guides/source/2_2_release_notes.txt +++ b/railties/doc/guides/source/2_2_release_notes.txt @@ -149,16 +149,15 @@ You can now specify conditions on join tables using a hash. This is a big help i [source, ruby] ------------------------------------------------------- class Photo < ActiveRecord::Base - belongs_to :Product + belongs_to :product end class Product < ActiveRecord::Base - has_many :products + has_many :photos end # Get all products with copyright-free photos: -Product.find(:all, :joins => :photo, - :conditions => { :photos => { :copyright => false }}) +Product.all(:joins => :photos, :conditions => { :photos => { :copyright => false }}) ------------------------------------------------------- * More information: |