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