activerecord-postgres-earthdistance
activerecord-postgres-earthdistance copied to clipboard
Allow strings as input to within_radius and within_box when distance unit is miles
Convert radius input to float before multiplying. nil and non-numeric strings coerce to 0, so to_f is enough. Loosely typed languages are fun!