OK, I know: self.options[:attributes]
Field for Validator
-
28-06-2022 - |
Question
If I have some CustomValidator, and following validation in model
validates :fieldname, :custom => true
How can I access :fieldname
or true
? Validator only takes object (def validate(record)
) and I can't use EachValidator.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow