-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi
I was wondering if it was possible to use the validators without using the class method. Instead of doing something like this:
class Server < ActiveRecord::Base
validates_ip_address :address
endI would like to write something like this:
class Server < ActiveRecord::Base
validate :address, using: IpAddressValidator
endThanks!
Metadata
Metadata
Assignees
Labels
No labels