alexreisner/geocoder — Issue #187: Geocoder::OverQueryLimitError never raised
Author: ordinaryzelig
Created: 2012-02-28 04:24:00+00:00
State: open

Geocoder::OverQueryLimitError will never get raised even if it is included in `Geocoder::Configuration.always_raise`. In [`Geocoder::Lookup::Google#results`](https://github.com/alexreisner/geocoder/blob/master/lib/geocoder/lookups/google.rb#L18), `raise_error(Geocoder::OverQueryLimitError)` is called. Shouldn't it be an **instance** of `Geocoder::OverQueryLimitError` since `raise_error` uses the class of the passed object to compare with `Geocoder::Configuration.always_raise`?