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