Sha256: 7fa6993daafbd6d0043eea20d2ccbf6955e462cd0b17380417a736b384ca5b34
Contents?: true
Size: 397 Bytes
Versions: 15
Compression:
Stored size: 397 Bytes
Contents
class User < ActiveRecord::Base include ArTransactionChanges attr_accessor :stored_transaction_changes after_commit :store_transaction_changes_for_tests def store_transaction_changes_for_tests @stored_transaction_changes = transaction_changed_attributes.reduce({}) do |changes, (attr_name, value)| changes[attr_name] = [value, send(attr_name)] changes end end end
Version data entries
15 entries across 15 versions & 1 rubygems