Sha256: 21fd6182fbdaa6acc10529dbb4e0bd6f6bfcab7f5ef071ea5b36e36a49ce9cf9

Contents?: true

Size: 122 Bytes

Versions: 8

Compression:

Stored size: 122 Bytes

Contents

class Shift < ActiveRecord::Base
  validates :starts_at, :ends_at, overlap: { start_shift: -1.day, end_shift: 1.day }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
validates_overlap-1.0.0 spec/dummy/app/models/shift.rb
validates_overlap-0.8.6 spec/dummy/app/models/shift.rb
validates_overlap-0.8.5 spec/dummy/app/models/shift.rb
validates_overlap-0.8.4 spec/dummy/app/models/shift.rb
validates_overlap-0.8.2 spec/dummy/app/models/shift.rb
validates_overlap-0.8.1 spec/dummy/app/models/shift.rb
validates_overlap-0.8.0 spec/dummy/app/models/shift.rb
validates_overlap-0.7.0 spec/dummy/app/models/shift.rb