Sha256: 0a44f81cb2fc4112dd037099d34cdb2c7e77cef6cc99bb1f60c221d65fcb9923

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class DocumentPart < ActiveRecord::Base
      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

3 entries across 3 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 app/models/lcms/engine/document_part.rb
lcms-engine-0.1.3 app/models/lcms/engine/document_part.rb
lcms-engine-0.1.2 app/models/lcms/engine/document_part.rb