Sha256: 57ca6fbb15d82a0b9f2acaca7d21e9ee7f9d6691f3e2a0b1bf67ad7078a6f5fc
Contents?: true
Size: 318 Bytes
Versions: 7
Compression:
Stored size: 318 Bytes
Contents
class TimeSlot < ActiveRecord::Base has_many :positions validates :"time_slots.starts_at", :"time_slots.ends_at", overlap: { query_options: { includes: :positions }, scope: { 'positions.user_id' => proc { |time_slot| time_slot.positions.map(&:user_id) } } } end
Version data entries
7 entries across 7 versions & 1 rubygems