Sha256: 2c4f778615d36eecd3f2e0c892d99b74c73bf1cb7e9b24c1464d3ff7732c2e12

Contents?: true

Size: 203 Bytes

Versions: 11

Compression:

Stored size: 203 Bytes

Contents

class ZipTypeValidator < ActiveModel::EachValidator
  def validate_each(record, attribute, value)
		unless value.blank?
			record[attribute] = value.to_i
			return value = value.to_i + 0
		end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stripe_local-0.2.5 app/validators/zip_type_validator.rb
stripe_local-0.2.4 app/validators/zip_type_validator.rb
stripe_local-0.2.3 app/validators/zip_type_validator.rb
stripe_local-0.2.2 app/validators/zip_type_validator.rb
stripe_local-0.2.1 app/validators/zip_type_validator.rb
stripe_local-0.2.0 app/validators/zip_type_validator.rb
stripe_local-0.1.3 app/validators/zip_type_validator.rb
stripe_local-0.1.2 app/validators/zip_type_validator.rb
stripe_local-0.1.1 app/validators/zip_type_validator.rb
stripe_local-0.1.0 app/validators/zip_type_validator.rb
stripe_local-0.0.2 app/validators/zip_type_validator.rb