include ActionController::API in condition