Class: Spree::LogEntry

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

Instance Method Summary collapse

Methods inherited from Base

page

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

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