https://github.com/tippenein/routing_number_validator
Rails 3 and 4 Bank Routing Number validator
https://github.com/tippenein/routing_number_validator
Last synced: 3 months 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-29T23:45:07.000Z (about 10 years ago)
- Last Synced: 2025-03-25T08:11:04.045Z (3 months ago)
- Language: Ruby
- Homepage: https://github.com/tippenein/routing_number_validator
- Size: 133 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RoutingNumberValidator
[](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