• Sean McGivern's avatar
    Ignore ordering when calling find_by on finders · 843f4b94
    Sean McGivern authored
    We shouldn't care about the ordering here; if we did, it would be more
    appropriate to use `take` or `first`. Having the ordering can result in
    the database picking a bad query plan, as it might think sorting the
    whole table first is the best option.
    843f4b94
finder_methods.rb 1.43 KB