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

check arity of validator conditionals before calling it with arguments #1007

Merged
merged 1 commit into from
Mar 31, 2014

Conversation

aennchen
Copy link
Contributor

makes paperclip upload work
fixes #999 as suggested there by @derekprior

makes paperclip upload work
fixes formtastic#999
@justinfrench
Copy link
Member

Woo! Thanks!

Could there be a simple test added to file_input_spec.rb to ensure that we don't introduce a regression in the future?

Have you confirmed that this is working for you in your app?

If we can get a teeny bit of coverage in there I'll get it merged and push out a RC for testing

Any concerns that it could introduce a bug elsewhere @sobrinho?

@aennchen
Copy link
Contributor Author

Yes, the fix has solved the issue in our app :) I'll see if I get to writing some specs. Not really sure where to start here. Were you referring to testing the logic in validations.rb in general or rather the bit I touched in validator_relevant?

@justinfrench
Copy link
Member

Merging as-is, I can't find a simple way to test this.

justinfrench added a commit that referenced this pull request Mar 31, 2014
Fix issues with Paperclip by checking arity of validator conditionals before calling it with arguments
@justinfrench justinfrench merged commit 2fa218e into formtastic:master Mar 31, 2014
@justinfrench justinfrench mentioned this pull request Apr 4, 2014
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.

File input for paperclip
2 participants