Sha256: 186fce1ce9c15c06b39cd034daca3d4082392de67555621bcdf92a60c1d674d0

Contents?: true

Size: 236 Bytes

Versions: 9

Compression:

Stored size: 236 Bytes

Contents

module Logistics
  module Core
    class CustomsOffice < ApplicationRecord
      validates :code, :name, presence: true, uniqueness: true

      def self.build(options = {})
        CustomsOffice.new(options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 app/models/logistics/core/customs_office.rb
logistics_core-21.11.1 app/models/logistics/core/customs_office.rb
logistics_core-21.08.1 app/models/logistics/core/customs_office.rb
logistics_core-21.03.1 app/models/logistics/core/customs_office.rb
logistics_core-20.10.3 app/models/logistics/core/customs_office.rb
logistics_core-20.10.2 app/models/logistics/core/customs_office.rb
logistics_core-20.10.1 app/models/logistics/core/customs_office.rb
logistics_core-20.9.1 app/models/logistics/core/customs_office.rb
logistics_core-20.8.1 app/models/logistics/core/customs_office.rb