Sha256: a7c5ffe8a564c2cd6e30138e0df34440450935990696a4b4ffdf839aff4be66c
Contents?: true
Size: 415 Bytes
Versions: 15
Compression:
Stored size: 415 Bytes
Contents
module Impressionist module IsImpressionable extend ActiveSupport::Concern module ClassMethods def is_impressionable(options={}) define_association @impressionist_cache_options = options true end private def define_association has_many(:impressions, :as => :impressionable, :dependent => :destroy) end end end end
Version data entries
15 entries across 15 versions & 2 rubygems