class Section < ActiveRecord::Base
  include Ublisherp::PublishableWithInstanceShortcuts

  has_many :content_items

  publish_stream class: ContentItem
  publish_stream name: :if_stream, if: ->(m) { false }
  publish_stream name: :unless_stream, unless: ->(m) { true }
  publish_stream name: :class_stream, class: [Class.new]
end

require File.expand_path('../content_item', __FILE__)

class Section < ActiveRecord::Base
  include Ublisherp::PublishableWithInstanceShortcuts

  has_many :content_items

  publish_stream class: ContentItem
  publish_stream name: :if_stream, if: ->(m) { false }
  publish_stream name: :unless_stream, unless: ->(m) { true }
  publish_stream name: :class_stream, class: [Class.new]
end

Build on Travis doesn't find ContentItem for some reason
Build on Travis doesn't find ContentItem for some reason
