• Yorick Peterse's avatar
    Clean up ActiveRecord code in TodosFinder · 4c1dc310
    Yorick Peterse authored
    This refactors the TodosFinder finder according to the new code reuse
    rules, as enforced by the CodeReuse cops. I also changed some of the
    methods to use regular if statements, instead of assignments and/or
    early returns. This results in a more natural flow when reading the
    code, and it makes it harder to accidentally return the wrong result.
    4c1dc310
todos_finder_spec.rb 4.11 KB