Sha256: fa3fbab030fe801fb6e14ce247f0e863fd013c1d41c7991b695c02d76acbee93
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
module Yaps # Handles creation of Activities upon destruction and update of tracked model. module Creation extend ActiveSupport::Concern include Wisper::Publisher included do after_create { publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_created", self) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yaps-0.0.1 | lib/yaps/actions/creation.rb |