Use a custom validator
12-Sep-2019 1839
Active Model’s validations, used by calling validates inside your model with various options, can be supplemented with your own custom classes. The Rails Guides contains a section on custom validations.
Use a custom validator #ruby #rubydeveloper #rubyonrails #custom #validator https://www.rubyonrails.ba/link/use-a-custom-validator