README.markdown in kontoapi-rails-0.3.0 vs README.markdown in kontoapi-rails-0.3.1
- old
+ new
@@ -63,9 +63,18 @@
# :allow_nil => true, <-- don't validate if nil
# :on_timeout => :ignore <-- do nothing if a timeout occurs, others:
# :fail <-- throw a validation error
# :retry <-- (not supported yet)
validates_bic :bic
+
+ # Combined IBAN & BIC validation
+ # Check if the given BIC exists, the IBAN is valid and if they match
+ # Takes any of the following options (the defaults are shown here):
+ # :allow_nil => true, <-- don't validate if both are nil
+ # :on_timeout => :ignore <-- do nothing if a timeout occurs, others:
+ # :fail <-- throw a validation error
+ # :retry <-- (not supported yet)
+ validates_iban_and_bic :iban, :bic
end
And if you want to autocomplete the bank name: