-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
With Ruby 3.0 validator produces "ArgumentError: wrong number of arguments (given 3, expected 1..2)" #2673
Comments
I'm hitting this same issue with Ruby 3.1.0. Any ETA on the fix? |
I switch to kt-paperclip |
I concur. I switched to |
The thing is that I also need
That's a part of my
Someone knows how to avoid that dependency and just keep installed |
@maxvlc Can you not just fork the project and update the dependency in the |
@joshuapinter Yep, that's the point, fork the gem and keep it on our project. |
The regression tests of an open source rails engine called sip, that uses paperclip, work good with Ruby 2.7 as can be seen at:
https://travis-ci.org/github/pasosdeJesus/sip/jobs/760216853
However with Ruby 3.0 the following errors appear (as can be seen at https://travis-ci.org/github/pasosdeJesus/sip/jobs/760216854#L976):
and
Both are related to expressions
anexo.valid?
whereanexo
is amodel with a paperclip attachment. Both use the validatorAttachmetntPresenceValidator
that includes the statement producing the error:The text was updated successfully, but these errors were encountered: