DebitcardValidator
debitcard_validator validates Debitcard/Prepaidcard based on Issuer Identifier Number(follows ISO/IEC 7812).
Usage
Add this line to your application's Gemfile:
gem 'debitcard_validator'And then execute:
bundle install
Then add the following to your model:
validates :number, debitcard: trueContributing
- Fork it ( https://github.com/kurotaky/debitcard_validator/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request