1
Ich habe 3 Modelle: Topic
, Post
, Link
.counter_cache für multilevel association
class Topic < ActiveRecord::Base
has_many :posts
end
class Post < ActiveRecord::Base
has_many :links
belongs_to :topic
end
class Link < ActiveRecord::Base
belongs_to :post
end
Ich möchte auf Link
Modell counter_cache
für Foren haben. Wie kann ich das tun?