validatorjs icon indicating copy to clipboard operation
validatorjs copied to clipboard

Allow registered rule to get involved in message rendering

Open riceyeh opened this issue 5 years ago • 0 comments

The message passed to validator.register(...) can only have :attribute for use in message rendering. Is it possible to let registered rules get more dynamic attributes like like :value and :other used by the provided required_if rule. Maybe validator.register(...) method should add one more argument for add replacement to the replacements, which is now not accessible.

riceyeh avatar Feb 27 '19 07:02 riceyeh