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

Only allow floats and ints as fixed ratio for crop #1234

Merged
merged 1 commit into from
Jan 30, 2017

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jan 30, 2017

Former we only checked if a fixed ratio was passed or not by checking its existence.
In Rails 5 all param values are strings, even booleans. This leads to NaN errors.
By checking the value to match an integer or float string we make sure this does
not happen any more.

Former we only checked if a fixed ratio was passed or not by checking its existence.
In Rails 5 all param values are strings, even booleans. This leads to NaN errors.
By checking the value to match an integer or float string we make sure this does
not happen any more.
@mamhoff mamhoff merged commit 42085be into master Jan 30, 2017
@mamhoff mamhoff deleted the fix-essence-picture-controller-spec branch January 30, 2017 10:24
@tvdeyen tvdeyen modified the milestone: 3.6 Jun 20, 2017
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