Skip to content

Commit

Permalink
make the error json key as 'error'
Browse files Browse the repository at this point in the history
  • Loading branch information
avinasha committed Sep 13, 2013
1 parent 088a78f commit 4a4f9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a4f9ac

Please sign in to comment.