Adds a template for API error messages so that it does not depend on AR::Errors serialization.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9094 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-03-04 15:16:50 +00:00
parent 5803bf9fc4
commit dc50edae5e
3 changed files with 9 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
api.array :errors do
@error_messages.each do |message|
api.error message
end
end