Sha256: 3fcc4195c1b75d4d3dcf8ac126ba4eccc0347155e308a88653dd151375cae2b6
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
module Smithy module ContentBlocks module Model extend ActiveSupport::Concern included do has_many :page_contents, as: :content_block, class_name: '::Smithy::PageContent', dependent: :destroy has_many :pages, through: :page_contents, class_name: '::Smithy::Page' Smithy::ContentBlocks::Registry.register self amoeba do enable exclude_association :pages exclude_association :page_contents end end module ClassMethods def content_block_description end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smithycms-0.8.1 | lib/smithy/content_blocks/model.rb |