Sha256: 414b75ae78a606a0613a6cd9a911f7947d467fb212e14a596702ffe12595e1d7

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module Yaps
  # Handles creation of Activities upon destruction and update of tracked model.
  module Updation
    extend ActiveSupport::Concern
    include Wisper::Publisher

    included do
      after_update { publish(:"#{ActiveSupport::Inflector.underscore(self.class.name)}_updated", self) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yaps-0.0.1 lib/yaps/actions/updation.rb