Class: Spree::LogEntry
- Inherits:
-
Object
- Object
- Spree::LogEntry
- Includes:
- Security::LogEntries
- Defined in:
- app/models/spree/log_entry.rb
Instance Method Summary collapse
Instance Method Details
#parsed_details ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/models/spree/log_entry.rb', line 17 def parsed_details @details ||= if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1.0') YAML.safe_load(details, permitted_classes: [ActiveMerchant::Billing::Response]) else YAML.safe_load(details, [ActiveMerchant::Billing::Response]) end end |
#save_anyway ⇒ Object
13 14 15 |
# File 'app/models/spree/log_entry.rb', line 13 def save_anyway Spree::LogEntry.create!(source: source, details: details) end |