Sha256: 9a654457c6af28c7c3140f94318983353d90475046d46e561080d1eb46c683d1
Contents?: true
Size: 264 Bytes
Versions: 23
Compression:
Stored size: 264 Bytes
Contents
module SimpleAuth module Helper # Renders the specified block for logged users. # # <% when_logged do %> # <!-- content for logged users --> # <% end %> def when_logged(&block) capture(&block) if logged_in? end end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-0.1.8 | lib/simple_auth/helper.rb |
simple_auth-0.1.7 | lib/simple_auth/helper.rb |
simple_auth-0.1.6 | lib/simple_auth/helper.rb |