Sha256: ec6d943bea9921060892038c308de27be659fd79b0698717308b925125f35b8e
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
module Impressionist module Impressionable extend ActiveSupport::Concern module ClassMethods def is_impressionable(options={}) has_many :impressions, :as => :impressionable, :dependent => :destroy @cache_options = options[:counter_cache] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
impressionist-1.1.1 | lib/impressionist/models/active_record/impressionist/impressionable.rb |
impressionist-1.1.0 | lib/impressionist/models/active_record/impressionist/impressionable.rb |