module Rekiq::Validator::ClassMethods
Attributes
for_validation[RW]
Public Instance Methods
validate(attribute_name, type, options = {})
click to toggle source
# File lib/rekiq/validator.rb, line 8 def validate(attribute_name, type, options = {}) options[:allow_nil] = false if options[:allow_nil].nil? self.for_validation << { attribute_name: attribute_name, type: type, options: options } end