• Yorick Peterse's avatar
    Add ApplicationRecord.where_exists · 38f57d3b
    Yorick Peterse authored
    This is a simple method for generating a WHERE EXISTS clause, without
    having to write it out manually. This pattern is used in several places,
    so this method allows us to cut down the amount of repetition in the
    future.
    38f57d3b
application_record.rb 1.24 KB