Sha256: f8e33ef562bbc242ca8df1ee9b424efa4a02644fc7578a3a9ed1d8a275c158f5
Contents?: true
Size: 465 Bytes
Versions: 24
Compression:
Stored size: 465 Bytes
Contents
module Spree class LogEntry < Spree::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, if: proc { !Rails.env.test? } def save_anyway Spree::LogEntry.create!(source: source, details: details) end def parsed_details @details ||= YAML.safe_load(details, [ActiveMerchant::Billing::Response]) end end end
Version data entries
24 entries across 24 versions & 1 rubygems