Sha256: 7fbe9cfd16ebd71802c515ade44482b81c8b30c326974d2b62046e700483fe7b

Contents?: true

Size: 329 Bytes

Versions: 11

Compression:

Stored size: 329 Bytes

Contents

# Allows content types (like Category) to be handled as blocks.
# Intended as temporary
module Cms::Concerns::IgnoresPublishing

  # Needs due to content controller automatically setting a default 'publish_on_save: false' when creating content.
  def self.included(klass)
    klass.send :attr_accessor, :publish_on_save
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.3.3 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.3.2 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.3.1 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.3 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.2 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.1.1 lib/cms/concerns/ignores_publishing.rb
browsercms-artirix-4.0.0.rc1.art4 lib/cms/concerns/ignores_publishing.rb
browsercms-4.0.0.rc1 lib/cms/concerns/ignores_publishing.rb
browsercms-4.0.0.beta lib/cms/concerns/ignores_publishing.rb
browsercms-4.0.0.alpha lib/cms/concerns/ignores_publishing.rb