Sha256: 2e583cfa579e6accbdab52f2b4a384906230542b31a16d4e7fae016435823269

Contents?: true

Size: 273 Bytes

Versions: 38

Compression:

Stored size: 273 Bytes

Contents

module Ecom
  module Core
    class BookedItem < ApplicationRecord
      belongs_to :booking
      belongs_to :requested_item
      belongs_to :equipment_item

      validates :start_date, :end_date, presence: true
      validates_with DateRangeValidator
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ecom_core-1.3.14 app/models/ecom/core/booked_item.rb
ecom_core-1.3.13 app/models/ecom/core/booked_item.rb
ecom_core-1.3.12 app/models/ecom/core/booked_item.rb
ecom_core-1.3.11 app/models/ecom/core/booked_item.rb
ecom_core-1.3.10 app/models/ecom/core/booked_item.rb
ecom_core-1.3.9 app/models/ecom/core/booked_item.rb
ecom_core-1.3.8 app/models/ecom/core/booked_item.rb
ecom_core-1.3.7 app/models/ecom/core/booked_item.rb
ecom_core-1.3.6 app/models/ecom/core/booked_item.rb
ecom_core-1.3.5 app/models/ecom/core/booked_item.rb
ecom_core-1.3.4 app/models/ecom/core/booked_item.rb
ecom_core-1.3.3 app/models/ecom/core/booked_item.rb
ecom_core-1.3.2 app/models/ecom/core/booked_item.rb
ecom_core-1.3.1 app/models/ecom/core/booked_item.rb
ecom_core-1.3.0 app/models/ecom/core/booked_item.rb
ecom_core-1.2.36 app/models/ecom/core/booked_item.rb
ecom_core-1.2.35 app/models/ecom/core/booked_item.rb
ecom_core-1.2.34 app/models/ecom/core/booked_item.rb
ecom_core-1.2.33 app/models/ecom/core/booked_item.rb
ecom_core-1.2.32 app/models/ecom/core/booked_item.rb