diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-12-22 11:45:37 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-23 15:19:18 -0800 |
commit | 3f17ed407c5d61bc01fd59776205486c2350f36e (patch) | |
tree | f88e42eb305473bd6c84fb4216908ca443830fc3 /activerecord/test/models | |
parent | 1619c2435b2b9c821b2b0dcab9624dbb6b23eaaa (diff) | |
download | rails-3f17ed407c5d61bc01fd59776205486c2350f36e.tar.gz rails-3f17ed407c5d61bc01fd59776205486c2350f36e.tar.bz2 rails-3f17ed407c5d61bc01fd59776205486c2350f36e.zip |
Test to verify that #2189 (count with has_many :through and a named_scope) is fixed
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/category.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb index 48415846dd..06908ea85e 100644 --- a/activerecord/test/models/category.rb +++ b/activerecord/test/models/category.rb @@ -23,6 +23,8 @@ class Category < ActiveRecord::Base has_many :categorizations has_many :authors, :through => :categorizations, :select => 'authors.*, categorizations.post_id' + + scope :general, :conditions => { :name => 'General' } end class SpecialCategory < Category |