diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-03-07 11:45:07 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-03-07 11:45:07 +0000 |
commit | e1173500379ab35734ac9101e58d6eff6552ef6e (patch) | |
tree | 215fc1abeb3e005f6dbc01f4d639c18f43883f16 /activerecord/test/models | |
parent | 8a351648ab613d42bbbf44586cff8cdeccd181d4 (diff) | |
download | rails-e1173500379ab35734ac9101e58d6eff6552ef6e.tar.gz rails-e1173500379ab35734ac9101e58d6eff6552ef6e.tar.bz2 rails-e1173500379ab35734ac9101e58d6eff6552ef6e.zip |
Add :readonly option to HasManyThrough associations. Closes #11156 [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/author.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb index 593d77342e..523d794fb3 100644 --- a/activerecord/test/models/author.rb +++ b/activerecord/test/models/author.rb @@ -20,7 +20,8 @@ class Author < ActiveRecord::Base has_many :funky_comments, :through => :posts, :source => :comments has_many :ordered_uniq_comments, :through => :posts, :source => :comments, :uniq => true, :order => 'comments.id' has_many :ordered_uniq_comments_desc, :through => :posts, :source => :comments, :uniq => true, :order => 'comments.id DESC' - + has_many :readonly_comments, :through => :posts, :source => :comments, :readonly => true + has_many :special_posts has_many :special_post_comments, :through => :special_posts, :source => :comments |