Sha256: 837c0e9aa709d8da4bf70a8adc95c80eea389a8a46cd650d56e29582d2d3f53b

Contents?: true

Size: 278 Bytes

Versions: 4

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    class MaterialPart < ActiveRecord::Base
      belongs_to :material
      enum context_type: { default: 0, gdoc: 1 }

      default_scope { active }

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

Version data entries

4 entries across 4 versions & 1 rubygems

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