Class: Spree::Metadata::HashSerializer
- Inherits:
-
Object
- Object
- Spree::Metadata::HashSerializer
- Defined in:
- app/models/concerns/spree/metadata.rb
Overview
Class Method Summary collapse
Class Method Details
.dump(hash) ⇒ Object
17 18 19 |
# File 'app/models/concerns/spree/metadata.rb', line 17 def self.dump(hash) hash end |
.load(hash) ⇒ Object
21 22 23 |
# File 'app/models/concerns/spree/metadata.rb', line 21 def self.load(hash) (hash || {}).with_indifferent_access end |