Overwrite this method for validation checks on all saves and use Errors.add(field, msg) for invalid attributes.
Source Code
# File active_record/validations.rb, line 983 def validate #:doc: end
Overwrite this method for validation checks on all saves and use Errors.add(field, msg) for invalid attributes.
# File active_record/validations.rb, line 983 def validate #:doc: end
<code/>and<pre/>for code samples.