Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 633 Bytes

File metadata and controls

31 lines (19 loc) · 633 Bytes

This gem provides a simple way to validate spanish bank account numbers.

gem install spanish_ccc_validator

In your Gemfile

gem "spanish_ccc_validator"

Then exec

bundle install

It provides only a fancy method

validate_spanish_ccc :account_number

It can be mixed with all options you’re used to

validate_spanish_ccc :origin_account_number, :destination_account_number,
  :message => "seems incorrect",
  :if => lambda { |sell| sell.payment_method == 'transfer' }

Copyright © 2012 Miguel Camba