at controller 的json应该登录

szzh
guange 10 years ago
parent 63596c2ca5
commit eb9232a087

@ -770,6 +770,7 @@ class ApplicationController < ActionController::Base
end
def api_request?
return false if params[:controller] == 'at'
%w(xml json).include? params[:format]
end

Loading…
Cancel
Save