开发者

Disabling Rails middleware for some actions but not all

It seems that ActionDispatch::ParamsParser is quite slow for some requests, in particular when there is a large JSON request body. I'd like to disable it for these requests, but for most of my application it works great. Is there a conven开发者_StackOverflow社区ient way to disable the ParamsParser for some actions without removing it from the middleware stack entirely? This is using Rails 3.0.9.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜