Sha256: 8737c4ce9b06eec47de897d7da31988a2a122e10af2993e9aa91637664c31993

Contents?: true

Size: 401 Bytes

Versions: 12

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class DocumentPart < ApplicationRecord
      belongs_to :renderer, polymorphic: true

      enum context_type: { default: 0, gdoc: 1 }

      default_scope { active }

      scope :active, -> { where(active: true) }
      scope :general, -> { where(optional: false) }
      scope :optional, -> { where(optional: true) }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/models/lcms/engine/document_part.rb
lcms-engine-0.5.4 app/models/lcms/engine/document_part.rb
lcms-engine-0.5.3 app/models/lcms/engine/document_part.rb
lcms-engine-0.5.2 app/models/lcms/engine/document_part.rb
lcms-engine-0.5.1 app/models/lcms/engine/document_part.rb
lcms-engine-0.5.0 app/models/lcms/engine/document_part.rb
lcms-engine-0.4.2 app/models/lcms/engine/document_part.rb
lcms-engine-0.4.1 app/models/lcms/engine/document_part.rb
lcms-engine-0.4.0 app/models/lcms/engine/document_part.rb
lcms-engine-0.3.1 app/models/lcms/engine/document_part.rb
lcms-engine-0.3.0 app/models/lcms/engine/document_part.rb
lcms-engine-0.2.0 app/models/lcms/engine/document_part.rb