Module: Reactor::Attributes
- Defined in:
- lib/reactor/attributes.rb,
lib/reactor/attributes/date_serializer.rb,
lib/reactor/attributes/html_serializer.rb,
lib/reactor/attributes/link_list_extender.rb,
lib/reactor/attributes/link_list_serializer.rb,
lib/reactor/attributes/link_list_from_accessor.rb,
lib/reactor/attributes/link_list_from_attr_values.rb
Overview
date attributes accept strings as values, and tries to parse them with Time.parse (unless they are in ISO format)
link recognition works only on relative urls. All absolute urls are recognized as external links
This module provides support for ActiveRecord like attribute setting, plus additional #set method, which is equivalent to the setters.
Date attributes are converted to correct format, when passed as Time-like objects. Links within HTML attributes are scanned and are converted if they point to local objects, so that the CM stores them as internal links.
Defined Under Namespace
Modules: Base, ClassMethods, LinkListExtender Classes: DateSerializer, HTMLSerializer, LinkListFromAccessor, LinkListFromAttrValues, LinkListSerializer