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

Update find_signed to find_signed! for Rails 6.1 #94

Merged

Conversation

connorshea
Copy link
Contributor

@connorshea connorshea commented Dec 13, 2020

find_signed no longer works in Rails 6.1, but find_signed! does.

So we add a version check and use a different method depending on the Rails version.

I tested this in my application vglist and it fixes the error, although I'm not sure how it should have an automated test written for it.

Fixes #93.

I'm sure there's a better way to determine the Rails version here, but I couldn't think of anything else that would work for, e.g. Rails 6.2, Rails 7, etc.

`find_signed` no longer works in Rails 6.1, but `find_signed!` does.

So we add a version check and use a different method depending on the
Rails version.
@igorkasyanchuk
Copy link
Owner

@igorkasyanchuk igorkasyanchuk merged commit f4d7bf1 into igorkasyanchuk:master Dec 16, 2020
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.

Aspect ratio validation on Rails 6.1 results in NoMethodError
2 participants