diff options
Diffstat (limited to 'activerecord/test/fixtures/category.rb')
-rw-r--r-- | activerecord/test/fixtures/category.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/category.rb b/activerecord/test/fixtures/category.rb index 9be459a80f..6917c51d34 100644 --- a/activerecord/test/fixtures/category.rb +++ b/activerecord/test/fixtures/category.rb @@ -1,5 +1,8 @@ class Category < ActiveRecord::Base has_and_belongs_to_many :posts + has_and_belongs_to_many :special_posts, :class_name => "Post" + has_and_belongs_to_many :hello_posts, :class_name => "Post", :conditions => "\#{aliased_table_name}.body = 'hello'" + has_and_belongs_to_many :nonexistent_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'nonexistent'" def self.what_are_you 'a category...' |