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, spree_base_scopes

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



13
14
15
# File 'app/models/spree/log_entry.rb', line 13

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

#save_anywayObject



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

def save_anyway
  Spree::LogEntry.create!(source: source, details: details)
end