Permalink
Browse files

use camelize instead of capitalize

  • Loading branch information...
1 parent d01b476 commit b71b7e50005d39223288da7f760e44df04958059 @netskin-ci netskin-ci committed Oct 10, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 lib/sequel_sexy_validations.rb
View
@@ -17,5 +17,6 @@ tmtags
coverage
rdoc
pkg
+nbproject
## PROJECT::SPECIFIC
@@ -29,7 +29,7 @@ def validates(attribute = nil, validations = nil, &block)
def load_validator(name)
begin
require "sequel_sexy_validations/validators/#{name}"
- "Sequel::Plugins::SexyValidations::Validators::#{name.to_s.capitalize}".constantize
+ "Sequel::Plugins::SexyValidations::Validators::#{name.to_s.camelize}".constantize
rescue LoadError
super
end

0 comments on commit b71b7e5

Please sign in to comment.