Is there a way to determine if the current render cycle is for a
partial?
I have an exception handler setup, but I’d like to re-throw the
exception if it is thrown while rendering a partial.
Thanks for any advice,
Andrew
Is there a way to determine if the current render cycle is for a
partial?
I have an exception handler setup, but I’d like to re-throw the
exception if it is thrown while rendering a partial.
Thanks for any advice,
Andrew
You could check out thread.backtrace and maybe parse it.
andrew4ta wrote:
Is there a way to determine if the current render cycle is for a
partial?I have an exception handler setup, but I’d like to re-throw the
exception if it is thrown while rendering a partial.Thanks for any advice,
Andrew
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs