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.2.31 app/models/ecom/core/booked_item.rb
ecom_core-1.2.30 app/models/ecom/core/booked_item.rb
ecom_core-1.2.29 app/models/ecom/core/booked_item.rb
ecom_core-1.2.28 app/models/ecom/core/booked_item.rb
ecom_core-1.2.27 app/models/ecom/core/booked_item.rb
ecom_core-1.2.26 app/models/ecom/core/booked_item.rb
ecom_core-1.2.25 app/models/ecom/core/booked_item.rb
ecom_core-1.2.24 app/models/ecom/core/booked_item.rb
ecom_core-1.2.23 app/models/ecom/core/booked_item.rb
ecom_core-1.2.22 app/models/ecom/core/booked_item.rb
ecom_core-1.2.21 app/models/ecom/core/booked_item.rb
ecom_core-1.2.20 app/models/ecom/core/booked_item.rb
ecom_core-1.2.19 app/models/ecom/core/booked_item.rb
ecom_core-1.2.18 app/models/ecom/core/booked_item.rb
ecom_core-1.2.17 app/models/ecom/core/booked_item.rb
ecom_core-1.2.16 app/models/ecom/core/booked_item.rb
ecom_core-1.2.15 app/models/ecom/core/booked_item.rb
ecom_core-1.2.14 app/models/ecom/core/booked_item.rb