• Yorick Peterse's avatar
    Refactor User.find_by_any_email · b603a513
    Yorick Peterse authored
    By using SQL::Union we can return a proper ActiveRecord::Relation,
    making it possible to select the columns we're interested in (instead of
    all of them).
    b603a513
user.rb 39.6 KB