Closed libin closed 12 years ago
Original Query:
where("build_requested = 't' or next_build_at is null or next_build_at <= :next_build_at", :next_build_at => Time.now)
New Query:
where("build_requested = ? or next_build_at is null or next_build_at <= ?", true, Time.now)
That's it. Thanks!
Sorry it took so long! I've merged it in now as 7bf4cc9937598337e44361ccd9463e363cdcfa88. Thanks for the pull request.
Original Query:
where("build_requested = 't' or next_build_at is null or next_build_at <= :next_build_at", :next_build_at => Time.now)
New Query:
where("build_requested = ? or next_build_at is null or next_build_at <= ?", true, Time.now)
That's it. Thanks!