Sha256: 73a5ead2c9a7739be5acbbf8ecae7fb053f922a6c2878050aa5643188efeaf87
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
module Pageflow # Add a +configuration+ attribute. # This is a hash serialized as JSON. # It contains everything related to the object, which includes its text # content such as title and body. module SerializedConfiguration extend ActiveSupport::Concern included do serialize :configuration, coder: JSON end def configuration self[:configuration] || {} end end end
Version data entries
5 entries across 5 versions & 1 rubygems