Patch to #5140 - same issue could be elsewhere...

In Ruby 1.9.2 theres this new functionality - responds_to_misisng? . Calls to this were being picked up by method_missing and causing some rather odd problems in active_record…

i added a patch to Lighthouse that takes care of this explicit case; my concern is given the wide dependence on method_missing within rails and particularly active record, this same bug could be present along other code paths…

In this case it manifested itself by causing a .count call on a named_scope to query the whole collection before doing the select count(id) query…

Stephen