alexreisner/geocoder — pull request #277 by balvig (2012-08-06 07:04:56+00:00)
Title: Fixed unit config not working with sqlite distance

Since the options hash is populated AFTER distance is calculated, setting units to :km in the config file would be ignored.

Changed to work same way as https://github.com/balvig/geocoder/blob/master/lib/geocoder/stores/active_record.rb#L147-148

(Was looking for a way to test this but could not find any sqlite3-specific tests...)