Extract humanize method from Extlib::Inflection to CouchRest.humanize, so that Extlib::Inflection dependency can be removed

This commit is contained in:
Geoff Buesing 2009-03-18 13:32:49 -05:00 committed by Matt Aimonetti
parent ef8933432a
commit d9417f3915
4 changed files with 15 additions and 3 deletions

View file

@ -54,7 +54,7 @@ module CouchRest
# XXX: HACK seems hacky to do this on every validation, probably should
# do this elsewhere?
field = Extlib::Inflection.humanize(field_name)
field = CouchRest.humanize(field_name)
min = @range ? @range.min : @min
max = @range ? @range.max : @max
equal = @equal