Sha256: eed1382f3fa479eed461f79a43a22bacbce18aa01429e41777300cba654823ee

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

module SimpleAuthHelper
  # 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_auth-0.1.5 app/helpers/simple_auth_helper.rb
simple_auth-0.1.4 app/helpers/simple_auth_helper.rb
simple_auth-0.1.3 app/helpers/simple_auth_helper.rb
simple_auth-0.1.2 app/helpers/simple_auth_helper.rb
simple_auth-0.1.1 app/helpers/simple_auth_helper.rb
simple_auth-0.1.0 app/helpers/simple_auth_helper.rb