lib/kasket/write_mixin.rb in kasket-4.11.0 vs lib/kasket/write_mixin.rb in kasket-4.12.0
- old
+ new
@@ -6,18 +6,18 @@
Array(ids).each do |id|
Kasket.cache.delete(kasket_key_for_id(id))
end
end
- def update_counters_with_kasket_clearing(*args)
+ def update_counters_with_kasket_clearing(*args, **kwargs)
remove_from_kasket(args[0])
- update_counters_without_kasket_clearing(*args)
+ update_counters_without_kasket_clearing(*args, **kwargs)
end
- def transaction_with_kasket_disabled(*args)
+ def transaction_with_kasket_disabled(*args, **kwargs)
without_kasket do
- transaction_without_kasket_disabled(*args) { yield }
+ transaction_without_kasket_disabled(*args, **kwargs) { yield }
end
end
end
module InstanceMethods
@@ -109,16 +109,16 @@
def kasket_after_destroy
Kasket.add_pending_record(self, _destroyed = true)
end
- def committed!(*)
+ def committed!(*args, **kwargs)
Kasket.clear_pending_records
kasket_after_commit if persisted? || destroyed?
super
end
- def rolledback!(*)
+ def rolledback!(*args, **kwargs)
Kasket.clear_pending_records
super
end
end