Sha256: c74d067b14cb771244725ad99c6967b97b51dcfdb6e74bb53c8843590b876848

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
impressionist-1.3.1 lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb
impressionist-1.3.0 lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb
impressionist-1.2.0 lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb
impressionist-1.1.1 lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb
impressionist-1.1.0 lib/impressionist/models/mongo_mapper/impressionist/impressionable.rb