Improving handling of mime types, instanciation of documents from the
database, and more dependencies on active_support.
This commit is contained in:
parent
303f0cd1cf
commit
b0d2258bd3
11 changed files with 69 additions and 57 deletions
|
@ -60,7 +60,7 @@ module CouchRest
|
|||
cattr_writer :default_error_messages
|
||||
|
||||
def self.default_error_message(key, field, *values)
|
||||
field = CouchRest.humanize(field)
|
||||
field = field.to_s.humanize
|
||||
@@default_error_messages[key] % [field, *values].flatten
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue