Sha256: 84ebbee6d57ee7c11d47c61edc580fcbff5642737c0b7f1a189969bee876663a
Contents?: true
Size: 562 Bytes
Versions: 30
Compression:
Stored size: 562 Bytes
Contents
module Spree::Cms::Sections class FeaturedArticle < Spree::CmsSection after_initialize :default_values store :content, accessors: [:title, :subtitle, :button_text, :rte_content], coder: JSON store :settings, accessors: [:gutters], coder: JSON LINKED_RESOURCE_TYPE = ['Spree::Taxon', 'Spree::Product', 'Spree::CmsPage'] def gutters? gutters == 'Gutters' end private def default_values self.gutters ||= 'No Gutters' self.fit ||= 'Screen' self.linked_resource_type ||= 'Spree::Taxon' end end end
Version data entries
30 entries across 30 versions & 1 rubygems