Sha256: 4ac0948159898e6afd0694d77e9e11b8b4e52b67bf3e7ecce92826a7601780eb
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
ActiveRecord::Base.send(:include, Impressionist::Impressionable) module Impressionist module Impressionable extend ActiveSupport::Concern module ClassMethods def is_impressionable(options={}) define_association @impressionist_cache_options = options end private def define_association has_many(:impressions, :as => :impressionable, :dependent => :destroy) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems