Sha256: f43efa02ec7bd984817f448c0fe7db1b8c4626fa00a3d9298c5d86e68d2b4c0c

Contents?: true

Size: 448 Bytes

Versions: 21

Compression:

Stored size: 448 Bytes

Contents

module Smithy
  module ContentBlocks
    module Model
      extend ActiveSupport::Concern
      included do
        has_many :page_contents, :as => :content_block, class_name: '::Smithy::PageContent'
        has_many :pages, through: :page_contents, class_name: '::Smithy::Page'
        Smithy::ContentBlocks::Registry.register self
      end

      module ClassMethods
        def content_block_description
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
smithycms-0.7.0 lib/smithy/content_blocks/model.rb
smithycms-0.6.10 lib/smithy/content_blocks/model.rb
smithycms-0.5.99.3 lib/smithy/content_blocks/model.rb
smithycms-0.6.9 lib/smithy/content_blocks/model.rb
smithycms-0.6.7 lib/smithy/content_blocks/model.rb
smithycms-0.6.6 lib/smithy/content_blocks/model.rb
smithycms-0.6.5 lib/smithy/content_blocks/model.rb
smithycms-0.6.4 lib/smithy/content_blocks/model.rb
smithycms-0.6.3 lib/smithy/content_blocks/model.rb
smithycms-0.5.99.2 lib/smithy/content_blocks/model.rb
smithycms-0.5.99.1 lib/smithy/content_blocks/model.rb
smithycms-0.5.99 lib/smithy/content_blocks/model.rb
smithycms-0.6.2 lib/smithy/content_blocks/model.rb
smithycms-0.6.1 lib/smithy/content_blocks/model.rb
smithycms-0.5.2 lib/smithy/content_blocks/model.rb
smithycms-0.6.0 lib/smithy/content_blocks/model.rb
smithycms-0.5.1 lib/smithy/content_blocks/model.rb
smithycms-0.5.0 lib/smithy/content_blocks/model.rb
smithycms-0.4.5 lib/smithy/content_blocks/model.rb
smithycms-0.4.4 lib/smithy/content_blocks/model.rb