Skip to content

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

Open
maxfurman wants to merge 2 commits into
diogob:masterfrom
maxfurman:feature/distance_unit_miles
Open

Allow strings as input to within_radius and within_box when distance unit is miles#38
maxfurman wants to merge 2 commits into
diogob:masterfrom
maxfurman:feature/distance_unit_miles

Conversation

@maxfurman

Copy link
Copy Markdown
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant