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

Convert to string before downcasing find_all_by attribute comparison #77

Merged
merged 3 commits into from
Jul 10, 2013

Conversation

npverni
Copy link
Contributor

@npverni npverni commented Jul 9, 2013

This was resulting in the following error:

undefined method `downcase' for true:TrueClass

To recreate, try:

ISO3166::Country.find_all_by(:eu_member, /true/)

hexorx added a commit that referenced this pull request Jul 10, 2013
Convert to string before downcasing find_all_by attribute comparison
@hexorx hexorx merged commit 6e78965 into countries:master Jul 10, 2013
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.

3 participants