Extract humanize method from Extlib::Inflection to CouchRest.humanize, so that Extlib::Inflection dependency can be removed
This commit is contained in:
parent
ef8933432a
commit
d9417f3915
4 changed files with 15 additions and 3 deletions
|
@ -60,7 +60,7 @@ module CouchRest
|
|||
cattr_writer :default_error_messages
|
||||
|
||||
def self.default_error_message(key, field, *values)
|
||||
field = Extlib::Inflection.humanize(field)
|
||||
field = CouchRest.humanize(field)
|
||||
@@default_error_messages[key] % [field, *values].flatten
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue