jwhitmire / upc_validations
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
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

