Sha256: 5a541a2d4b9c91ea63927021753212abb8382d32366532477016c575bcc140e4
Contents?: true
Size: 405 Bytes
Versions: 70
Compression:
Stored size: 405 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, JSON end def configuration self[:configuration] || {} end end end
Version data entries
70 entries across 70 versions & 1 rubygems