Permalink
Browse files

make the error json key as 'error'

  • Loading branch information...
1 parent 088a78f commit 4a4f9accbf47146d792803d78400507c99a1997a @avinasha avinasha committed Sep 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 run_app.rb
View
@@ -47,7 +47,7 @@ def self.setup(app_class)
response = app.errors
end
content_type :json
- response.to_json
+ { errors: response }.to_json
end
post "/#{app_class.slug}/event/:event" do

0 comments on commit 4a4f9ac

Please sign in to comment.