fix API V1 default format

This commit is contained in:
Xavier J 2016-02-22 15:20:58 +01:00
parent 1a1a97f79c
commit b0fc7665e5

View file

@ -17,6 +17,6 @@ class APIController < ApplicationController
end end
def default_format_json def default_format_json
request.format = "json" unless request.accept request.format = "json" unless request.params[:format]
end end
end end