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

Make geocode_ip_address consistent #85

Merged
merged 1 commit into from
Oct 9, 2015
Merged

Conversation

thomdixon
Copy link
Contributor

retrieve_location_from_cookie_or_service would return a GeoLoc
if the location was not cached, and a Hash if it was. Now a
GeoLoc object is returned regardless.

`retrieve_location_from_cookie_or_service` would return a `GeoLoc`
if the location was not cached, and a `Hash` if it was. Now a
`GeoLoc` object is returned regardless.
def retrieve_location_from_cookie_or_service
return YAML.load(cookies[:geo_location]) if cookies[:geo_location]
return GeoLoc.new(YAML.load(cookies[:geo_location])) if cookies[:geo_location]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [84/80]

mnoack pushed a commit that referenced this pull request Oct 9, 2015
Make geocode_ip_address consistent
@mnoack mnoack merged commit 178d714 into geokit:master Oct 9, 2015
@mnoack
Copy link
Member

mnoack commented Oct 9, 2015

Thanks @thomdixon

@thomdixon
Copy link
Contributor Author

No problem! Thanks for the awesome lib!

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.

None yet

3 participants