class BsnValidator

Public Instance Methods

validate_each(record,attribute,value) click to toggle source
# File lib/elfproef_plan.rb, line 4
 def validate_each(record,attribute,value)
         record.errors.add(attribute, options[:message]|| "ongeldig bsn nr", options) unless ElfproefPlan::ElfProef.new(value).validBsn
end