Fix that #exists? can blow up with ThrowResult exception #6521

merged 1 commit into from Jun 11, 2012
Commits on Jun 11, 2012
  1. @Empact

    Fix that #exists? raises ThrowResult when called with an empty limited

    Empact committed May 28, 2012
    ActiveRecord::FinderMethods#construct_limited_ids_condition will raise
    ThrowResult if the limited reflection comes back empty. The other callers
    of #construct_limited_ids_condition handle this exception (more specifically,
    the callers of construct_relation_for*), but #exists? didn't until now.