i have been working on a specific use case, where we need to render something like
render body: nil
render nothing: true
so these two things has to used in different methods, like
def render_method
if some_condition
render body: nil
else
render nothing: true
end
end
so while calling this, from another method like
def method2
render_method
end
Anyhow this is rendering to the method 2.
Is there any way for this to render to the method which called above?