Sha256: 729577b06e524c2a97b72f7eb9d2ccdd6c3fcbdbc43078d9124810644f8b6d36
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require "activerecord-committed_observer/version" module ActiveRecord module CommittedObserver def after_commit(model) case when model.__send__(:transaction_include_action?, :create) then after_commit_on_create(model) if respond_to?(:after_commit_on_create) when model.__send__(:transaction_include_action?, :update) then after_commit_on_update(model) if respond_to?(:after_commit_on_update) when model.__send__(:transaction_include_action?, :destroy) then after_commit_on_destroy(model) if respond_to?(:after_commit_on_destroy) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-committed_observer-0.0.1 | lib/activerecord-committed_observer.rb |