Conversation
|
@adzap Hi, this is a minor patch we've made to We'd like to get this merged upstream so we don't have to maintain our own fork, could you take a look? |
|
Hi, I've asked to be added to maintainers so I can keep this library up to date and merge bug fixes like this. Let's maybe wait but at a certain point I'm interested in creating a fork maybe in a new GitHub team to allow multiple admins |
|
@tagliala any update on this? |
|
Please migrate to Rails' built in comparison validator, this gem is not maintained and probably not needed anymore diowa/icare@dd4a467#diff-8f06df7d19040b42d0ab94249895f10fac375834ce5a6f4e55b93570b9dd7d8fL26-R27 |
|
@tagliala we use this gem to check that the correct date format was provided in order to prevent |
|
Seems like the convention is to filter out the validation option keys. The presence validator has no option keys so is it the best example. Will work on this. |
|
checkout c3c4459 |
This PR ensures that the options that are sent in the validation are passed through to errors.
Custom options being set on a validation should be able to be accessed post validation as they would have been set to indicate a validation has failed for some reason.
Added a test case that checks for this.