Sha256: dbc067db0365b0d4f28ecfea2a9341101fa27825ea132f5f96c53fb8bda555c2
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 Bytes
Contents
MongoMapper::Document.plugin Impressionist::Impressionable 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
impressionist-1.4.0 | lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb |
impressionist-1.3.2 | lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb |