activerecord-postgres-earthdistance icon indicating copy to clipboard operation
activerecord-postgres-earthdistance copied to clipboard

Allow strings as input to within_radius and within_box when distance unit is miles

Open maxfurman opened this issue 7 years ago • 0 comments

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!

maxfurman avatar Apr 24 '18 16:04 maxfurman