Class: Decidim::Attributes::RichText

Inherits:
CleanString
  • Object
show all
Defined in:
lib/decidim/attributes/rich_text.rb

Overview

Custom attributes value to convert rich text strings in the database, i.e. strings that originate from the editor.

Instance Method Summary collapse

Instance Method Details

#serialize(value) ⇒ Object

Serializes the value to the database.



13
14
15
# File 'lib/decidim/attributes/rich_text.rb', line 13

def serialize(value)
  serialize_value(value)
end

#typeObject



8
9
10
# File 'lib/decidim/attributes/rich_text.rb', line 8

def type
  :"decidim/attributes/rich_text"
end