lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb in impressionist-1.4.0 vs lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb in impressionist-1.4.1

- old
+ new

@@ -3,12 +3,19 @@ module Impressionist module Impressionable extend ActiveSupport::Concern module ClassMethods - def is_impressionable(options={}) - many :impressions, :as => :impressionable, :dependent => :destroy - @cache_options = options[:counter_cache] - end + + def is_impressionable(options={}) + many(:impressions, + :as => :impressionable, + :dependent => :destroy) + + @impressionist_cache_options = options + end + end + end + end