Exception: Spree::LogEntry::DisallowedClass

Inherits:
RuntimeError
  • Object
show all
Defined in:
app/models/spree/log_entry.rb

Overview

Raised when a disallowed class is tried to be loaded

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(psych_exception:) ⇒ DisallowedClass

Returns a new instance of DisallowedClass.



22
23
24
25
# File 'app/models/spree/log_entry.rb', line 22

def initialize(psych_exception:)
  @psych_exception = psych_exception
  super(default_message)
end

Instance Attribute Details

#psych_exceptionObject (readonly)

Returns the value of attribute psych_exception.



20
21
22
# File 'app/models/spree/log_entry.rb', line 20

def psych_exception
  @psych_exception
end