Class: Spree::LogEntry

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

Instance Method Summary collapse

Instance Method Details

#parsed_detailsObject



16
17
18
# File 'app/models/spree/log_entry.rb', line 16

def parsed_details
  @details ||= YAML.load(details)
end

#save_anywayObject



9
10
11
12
13
14
# File 'app/models/spree/log_entry.rb', line 9

def save_anyway
  log = Spree::LogEntry.new
  log.source  = source
  log.details = details
  log.save!
end