diff options
author | Jamis Buck <jamis@37signals.com> | 2006-03-09 18:11:41 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-03-09 18:11:41 +0000 |
commit | b95b09f32daf4da5eb9986ba3444f7dd968a72a1 (patch) | |
tree | c8dfa7ab37dcb3fe1e736d34a44b292f2c3c878a /activerecord/test/fixtures | |
parent | 87898badba211540d9c1d4dae0cd513a9d525554 (diff) | |
download | rails-b95b09f32daf4da5eb9986ba3444f7dd968a72a1.tar.gz rails-b95b09f32daf4da5eb9986ba3444f7dd968a72a1.tar.bz2 rails-b95b09f32daf4da5eb9986ba3444f7dd968a72a1.zip |
a few more tests for the custom counter_cache naming code
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rwxr-xr-x | activerecord/test/fixtures/reply.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/reply.rb b/activerecord/test/fixtures/reply.rb index 04a50e9322..44a23cd2dd 100755 --- a/activerecord/test/fixtures/reply.rb +++ b/activerecord/test/fixtures/reply.rb @@ -2,7 +2,7 @@ require 'fixtures/topic' class Reply < Topic belongs_to :topic, :foreign_key => "parent_id", :counter_cache => true - has_many :silly_replies, :dependent => true, :foreign_key => "parent_id" + has_many :replies, :class_name => "SillyReply", :dependent => true, :foreign_key => "parent_id" validate :errors_on_empty_content validate_on_create :title_is_wrong_create |