I'm defining an around filter as its own class. The documentation on
ActionController::Filters::ClassMethods includes this example:
# This will run before the action. Redirecting aborts the action.
# This will run after the action if and only if before did not
render or redirect.
It also includes the explanatory text, "If before renders or
redirects, the filter chain is halted and after will not be run"
implying that these filters can render. What I'm not clear on is how.
In my class, calls to render result in a no such method error. I tried
calling controller.render, and it turns out that's protected. I can
get around this using send, but I doubt that's actually the right way.
Does anyone happen to know what the right way is?