Sha256: d885028686e6c9ec8a0d52876ccaa9cccdc7f18a4a0f24467afafda6996b9a13
Contents?: true
Size: 438 Bytes
Versions: 24
Compression:
Stored size: 438 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 def parsed_details @details ||= YAML.load(details) end end end
Version data entries
24 entries across 24 versions & 1 rubygems