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

Fix fallback in case of letters-only alphabet #54

Merged
merged 1 commit into from
Jul 29, 2018
Merged

Fix fallback in case of letters-only alphabet #54

merged 1 commit into from
Jul 29, 2018

Conversation

Drakula2k
Copy link
Contributor

Hi!

When I run this gem with a letters-only alphabet (and config.override_find = true), MyModel.find(123) raises a Hashids::InputError exception when it tries to decode non-alphabet symbols.

Copy link
Owner

@jcypret jcypret left a comment

Choose a reason for hiding this comment

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

Code and specs look great. Tested locally and fixes the issue. I'll get this merged in and released.

Thanks for the contribution!

@jcypret jcypret merged commit 08716b9 into jcypret:master Jul 29, 2018
@jcypret
Copy link
Owner

jcypret commented Jul 29, 2018

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.

2 participants