5 6 7 8 9
# File 'lib/bsb_number_validator.rb', line 5 def validate_each(record, attribute, value) unless BSB.lookup(value) record.errors.add(attribute, :invalid) end end