Exception: Spree::LogEntry::BadAlias

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

Overview

Raised when YAML contains aliases and they're not enabled

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(psych_exception:) ⇒ BadAlias

Returns a new instance of BadAlias.



46
47
48
49
# File 'core/app/models/spree/log_entry.rb', line 46

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.



44
45
46
# File 'core/app/models/spree/log_entry.rb', line 44

def psych_exception
  @psych_exception
end