Sha256: 757a3ae0de80e59e1f7da8775027e07bae6a3de6ea986f045fa7ba52b6298ab1

Contents?: true

Size: 825 Bytes

Versions: 2

Compression:

Stored size: 825 Bytes

Contents

# BankValidator

This validator using ActiveModel is aimed at validating a model that has BIC and IBAN fields

## Installation

Add this line to your application's Gemfile:

    gem 'bank_validator'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install bank_validator

## Usage

Include it in your model and call it with validate_with

  class User < ActiveRecord::Base
    include ActiveModel::Validations
    validates_with BankValidator::Validator
  end

## Options

You can pass allow_nil: false if you want the bankdata to be required. True by default.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bank_validator-0.1b README.md
bank_validator-0.1a README.md