Prefer JSON to Atom feed

We should not break the current behavior when the client sends
`Accept: */*` HTTP header.
This commit is contained in:
Hiro Asari 2013-11-11 11:42:48 -05:00
parent 8171d3915e
commit e945476c8d

View File

@ -49,7 +49,7 @@ class Travis::Api::App
end
def responders(resource, options)
[:Atom, :Json, :Image, :Xml, :Plain].map do |name|
[:Json, :Atom, :Image, :Xml, :Plain].map do |name|
Responders.const_get(name)
end
end