Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units parameters should be more forgiving and allow a string #297

Closed
triemstr opened this issue Sep 19, 2012 · 2 comments
Closed

Units parameters should be more forgiving and allow a string #297

triemstr opened this issue Sep 19, 2012 · 2 comments
Labels

Comments

@triemstr
Copy link

Hi,

I spent quite a bit of time trying to pass in:

distance_units = preferences.units  # Should be 'mi' or 'km'
Location.near(origin, 500, :units => distance_units)

only to find out I had to add a 'to_sym':

Location.near(origin, 500, :units => distance_units.to_sym)

It would be nice if :units was more forgiving and could take a string.

@alexreisner
Copy link
Owner

Fixed by #411.

@triemstr
Copy link
Author

triemstr commented Mar 5, 2013

Thank you good sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants