Sha256: 6fe648c353aa659da3983d3dc6129cb4eb6cd898e3187fe98f4584a1abe4eee1
Contents?: true
Size: 293 Bytes
Versions: 5
Compression:
Stored size: 293 Bytes
Contents
class Position < ActiveRecord::Base belongs_to :time_slot belongs_to :user validates "time_slots.starts_at", "time_slots.ends_at", :overlap => { :query_options => {:includes => :time_slot}, :scope => { "positions.user_id" => proc{|position| position.user_id} } } end
Version data entries
5 entries across 5 versions & 1 rubygems