jwhitmire / upc_validations

Rails plugin to validate 12 digit UPC codes

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
directory spec/
README
UpcValidators
=============

This plugin adds a new validation to ActiveRecord::Base for validating UPC codes.  Eventually it could be used to do 
more, but for now that is its lowly purpose in life.  To use it, just call validates_upc_code in your model as you would 
any other validator passing it the attribute containing the UPC code.


Example
=======

class Product < ActiveRecord::Base
  validates_upc_code :upc_code
end


Copyright (c) 2009 Jeff Whitmire, released under the MIT license