lib/txcatcher/models/deposit.rb in txcatcher-0.2.4 vs lib/txcatcher/models/deposit.rb in txcatcher-0.2.6

- old
+ new

@@ -4,9 +4,15 @@ many_to_one :transaction many_to_one :address attr_accessor :address_string + plugin :serialization, :json, :rbf_transaction_ids + + def before_save + self.rbf_transaction_ids + end + def before_save if @address_string self.address = Address.find_or_create(address: @address_string) end