diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 15:16:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 15:16:50 +0000 |
commit | dc50edae5e27fdfc72a7de4d9b7021d98d9621bc (patch) | |
tree | da31e2c09e7beff18eeeec822811630018508d5b /app/views/common | |
parent | 5803bf9fc4545610a7ee46ce7f6a6bf9b4f55a57 (diff) | |
download | redmine-dc50edae5e27fdfc72a7de4d9b7021d98d9621bc.tar.gz redmine-dc50edae5e27fdfc72a7de4d9b7021d98d9621bc.zip |
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
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/error_messages.api.rsb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/common/error_messages.api.rsb b/app/views/common/error_messages.api.rsb new file mode 100644 index 000000000..811d2a863 --- /dev/null +++ b/app/views/common/error_messages.api.rsb @@ -0,0 +1,5 @@ +api.array :errors do + @error_messages.each do |message| + api.error message + end +end |