argument error

This commit is contained in:
Chris Anderson 2008-10-02 17:16:49 -07:00
parent 9858f85c19
commit 428d304438

View file

@ -418,7 +418,7 @@ module CouchRest
elsif target.is_a?(Class)
self[k] = target.new(self[k])
else
raise ArgumentError, ":as => MyClass, :as => [MyClass]"
raise ArgumentError, "Call like - cast :field, :as => MyClass - or - :as => [MyClass] if the field is an array."
end
end
end