Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tippenein/routing_number_validator
Rails 3 and 4 Bank Routing Number validator
https://github.com/tippenein/routing_number_validator
Last synced: 12 days ago
JSON representation
Rails 3 and 4 Bank Routing Number validator
- Host: GitHub
- URL: https://github.com/tippenein/routing_number_validator
- Owner: tippenein
- Created: 2015-06-18T22:28:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-29T23:45:07.000Z (over 9 years ago)
- Last Synced: 2024-10-11T23:54:05.965Z (about 1 month ago)
- Language: Ruby
- Homepage: https://github.com/tippenein/routing_number_validator
- Size: 133 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RoutingNumberValidator
[![Build Status](https://secure.travis-ci.org/tippenein/routing_number_validator.png)](http://travis-ci.org/tippenein/routing_number_validator)
Rails 3 and 4 Bank Routing Number validator
This gem is intended to be a minimal application of validations provided in
larger libraries (see `ActiveMerchant`) if a more minimal implementation is
intended.Use this gem as if it was just another ActiveModel validator (because it is)
```ruby
class MyModel < ActiveRecord
validates :my_routing_number, :routing_number => true
endbilling_info = MyModel.new(invalid_routing_number_params)
billing_info.valid? => false
```## Usage
Add this line to your application's Gemfile:
```ruby
gem 'routing_number_validator'
```then run:
$ bundle
Then add the following to your model:
```ruby
validates :my_routing_number, :routing_number => true
```## Contributing
1. Fork it ( https://github.com/[my-github-username]/routing_number_validator/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request