Top Level Namespace

Defined Under Namespace

Modules: DeliveryHelper, Transit Classes: Asset, Audio, ContentBlock, Context, EmbeddedContentBlock, EmbeddedImage, HeadingText, HtmlContent, MediaContext, String, TextBlock, Video

Instance Method Summary collapse

Instance Method Details


A content block is similar to a page, except that it only stores contexts. Content blocks can be referenced from one or more pages, they can also have their content disabled, in cases where they should have a defined set of contexts, un-changable by the user.

Finally they can also be marked as "removable", making it easy to disallow deletion of content blocks that are vital to layout or other elements.

# File 'app/models/content_block.rb', line 12

require File.join(File.dirname(__FILE__), 'context.rb')