Skip to content

Commit

Permalink
Renamed file also
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel.camba committed Jan 18, 2012
1 parent 87dfd06 commit 4c73f32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spanish_ccc_validator.rb
@@ -1,5 +1,5 @@
require "spanish_ccc_validator/version"
require "spanish_ccc_validator/custom_validator"
require "spanish_ccc_validator/custom_ccc_validator"

module SpanishCccValidator

Expand All @@ -14,7 +14,7 @@ def validate_spanish_ccc(*args)

validates_each(args, config) do |record, arg, value|
error_msg = config[:message].is_a?(Proc) ? config[:message].call : config[:message]
record.errors.add(arg, error_msg) unless CustomValidator.validate(value)
record.errors.add(arg, error_msg) unless CustomCccValidator.validate(value)
end
end
end
Expand Down

0 comments on commit 4c73f32

Please sign in to comment.