# File app/models/timeslot.rb, line 60 def self.concurrent_with(moment, req={}) self.paginate(:all, {:conditions => [%Q(? BETWEEN start_time - coalesce(tolerance_pre, ?)::interval AND start_time + coalesce(tolerance_post, ?)::interval ), moment, self.default_tolerance_pre, self.default_tolerance_post], :page => 1}.merge(req)) end