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