Sha256: 1042d887930cafb5bb807c3f9314627b6c655c1cf42e6076d19b795161ea5e48
Contents?: true
Size: 295 Bytes
Versions: 6
Compression:
Stored size: 295 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
6 entries across 6 versions & 1 rubygems