Class: Spree::LogEntry

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

Instance Method Summary (collapse)

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Methods included from Preferences::Preferable

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

Instance Method Details

- (Object) parsed_details



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

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

- (Object) save_anyway



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