Class: Decidim::Attributes::RichText
- Inherits:
-
CleanString
- Object
- ActiveModel::Type::Value
- CleanString
- Decidim::Attributes::RichText
- 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
-
#serialize(value) ⇒ Object
Serializes the value to the database.
- #type ⇒ Object
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 |
#type ⇒ Object
8 9 10 |
# File 'lib/decidim/attributes/rich_text.rb', line 8 def type :"decidim/attributes/rich_text" end |