Class: Spree::Metafields::RichText

Inherits:
Spree::Metafield show all
Defined in:
app/models/spree/metafields/rich_text.rb

Instance Method Summary collapse

Instance Method Details

#csv_valueObject



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

def csv_value
  value&.body&.to_plain_text || ''
end

#serialize_valueObject



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

def serialize_value
  value&.body&.to_s
end