aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb
index ea0094de39..c183940c2f 100644
--- a/activerecord/test/fixtures/author.rb
+++ b/activerecord/test/fixtures/author.rb
@@ -1,5 +1,9 @@
class Author < ActiveRecord::Base
has_many :posts
+ has_many :posts_with_comments, :include => :comments, :class_name => "Post"
+ has_many :posts_with_categories, :include => :categories, :class_name => "Post"
+ has_many :posts_with_comments_and_categories, :include => [ :comments, :categories ], :class_name => "Post"
+
has_many :posts_with_callbacks, :class_name => "Post", :before_add => :log_before_adding,
:after_add => :log_after_adding, :before_remove => :log_before_removing,
:after_remove => :log_after_removing