module SimpleAuthHelper # Renders the specified block for logged users. # # <% when_logged do %> # # <% end %> def when_logged(&block) capture(&block) if logged_in? end end