rails/activerecord/test/models/wheel.rb
Neeraj Singh 1e53404fe9 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>
2010-07-08 23:24:12 +02:00

4 lines
107 B
Ruby

class Wheel < ActiveRecord::Base
belongs_to :wheelable, :polymorphic => true, :counter_cache => true
end