Render objects that respond_to render_in in controllers
In https://github.com/rails/rails/pull/36388, we supported passing objects that `respond_to` `render_in` to `render`, but _only_ in views. This change does the same for controllers, as Rails generally gives the expectation that `render` behaves the same in both contexts. Co-authored-by: NAaron Patterson <tenderlove@github.com>
Showing
想要评论请 注册 或 登录