Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveRecord::QueryMethods.build_where can be written better

#4118

ActiveRecord::QueryMethods calls first on *args many times, and can also take advantage of case / when statements rather than calling is_a?.

I've attached a patch that cleans up the code a bit.

Reported by Aaron Patterson · March 6th, 2010 @ 09:20 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to committed

    45c36ea0961d015bf040043c7ab2ac2069d3b92f

    March 6th, 2010 @ 10:23 PM