at controller 的json应该登录

This commit is contained in:
guange 2016-01-29 21:15:23 +08:00
parent 63596c2ca5
commit eb9232a087
1 changed files with 1 additions and 0 deletions

View File

@ -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