Skip to content

Commit

Permalink
fix bic validator
Browse files Browse the repository at this point in the history
  • Loading branch information
max-power committed Feb 19, 2014
1 parent cdb3b2c commit 9f3d0db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bank/validators/bic_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

class BicValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
record.errors.add(attribute, :invalid) unless BIC.valid?(value)
record.errors.add(attribute, :invalid) unless Bank::BIC.valid?(value)
end
end
2 changes: 1 addition & 1 deletion lib/bank/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Bank
VERSION = "0.0.2"
VERSION = "0.0.3"
end

0 comments on commit 9f3d0db

Please sign in to comment.