Module: Cms::Concerns::IgnoresPublishing
- Included in:
- Cms::Category, Cms::CategoryType, Tag
- Defined in:
- lib/cms/concerns/ignores_publishing.rb
Overview
Allows content types (like Category) to be handled as blocks. Intended as temporary
Class Method Summary collapse
-
.included(klass) ⇒ Object
Needs due to content controller automatically setting a default ‘publish_on_save: false’ when creating content.
Class Method Details
.included(klass) ⇒ Object
Needs due to content controller automatically setting a default ‘publish_on_save: false’ when creating content.
6 7 8 |
# File 'lib/cms/concerns/ignores_publishing.rb', line 6 def self.included(klass) klass.send :attr_accessor, :publish_on_save end |