6e56a03f83
The counter column name in the intermediate model need to be access via the through reflection.
5 lines
120 B
Ruby
5 lines
120 B
Ruby
class Subscription < ActiveRecord::Base
|
|
belongs_to :subscriber, :counter_cache => :books_count
|
|
belongs_to :book
|
|
end
|