Sha256: b34b0805b33eb7b5ba52f1a733c9f9c9178217bae0ffb26b9d238c988253649d
Contents?: true
Size: 368 Bytes
Versions: 19
Compression:
Stored size: 368 Bytes
Contents
module Spree class LogEntry < ActiveRecord::Base belongs_to :source, polymorphic: true # Fix for #1767 # If a payment fails, we want to make sure we keep the record of it failing after_rollback :save_anyway def save_anyway log = Spree::LogEntry.new log.source = source log.details = details log.save! end end end
Version data entries
19 entries across 19 versions & 1 rubygems