class ActiveModel::Validator
def validate(record)
Override this method in subclasses with validation logic, adding errors
def validate(record) raise NotImplementedError, "Subclasses must implement a validate(record) method." end
def validate(record) raise NotImplementedError, "Subclasses must implement a validate(record) method." end