lib/kasket/write_mixin.rb in kasket-4.2.1 vs lib/kasket/write_mixin.rb in kasket-4.3.0

- old
+ new

@@ -127,11 +127,14 @@ if ActiveRecord::VERSION::MAJOR == 3 || (ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR == 0) model_class.after_touch :kasket_after_commit end class << model_class - alias_method_chain :transaction, :kasket_disabled - alias_method_chain :update_counters, :kasket_clearing + alias_method :transaction_without_kasket_disabled, :transaction + alias_method :transaction, :transaction_with_kasket_disabled + + alias_method :update_counters_without_kasket_clearing, :update_counters + alias_method :update_counters, :update_counters_with_kasket_clearing end end end end