aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/wheel.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-06-27 11:17:44 -0400
committerJosé Valim <jose.valim@gmail.com>2010-07-08 23:24:12 +0200
commit1e53404fe9c39ad0849894d73e431315be8c0bf0 (patch)
tree57f1bc98e37e8f5ed17ed8126d1b43d3c6578288 /activerecord/test/models/wheel.rb
parent87f64ef05e48ad8b374022ca944e34a7ad68551d (diff)
downloadrails-1e53404fe9c39ad0849894d73e431315be8c0bf0.tar.gz
rails-1e53404fe9c39ad0849894d73e431315be8c0bf0.tar.bz2
rails-1e53404fe9c39ad0849894d73e431315be8c0bf0.zip
reset_counter should work with non-traditional belongs_to and polymorphic belongs_to
[#4984 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models/wheel.rb')
-rw-r--r--activerecord/test/models/wheel.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/wheel.rb b/activerecord/test/models/wheel.rb
new file mode 100644
index 0000000000..26868bce5e
--- /dev/null
+++ b/activerecord/test/models/wheel.rb
@@ -0,0 +1,3 @@
+class Wheel < ActiveRecord::Base
+ belongs_to :wheelable, :polymorphic => true, :counter_cache => true
+end