Sha256: 2733439f9c16527d315a21b949ee25cb87da2a61b96496335e05df213dcf36f1

Contents?: true

Size: 368 Bytes

Versions: 7

Compression:

Stored size: 368 Bytes

Contents

module Login
  # Automatically mixed into all views for utility functions.
  module HelperIntegration

    # Returns the current user at the view level. Everything said
    # about the current_user method in the
    # Login::ControllerIntegration::InstanceMethods module
    # applies to this method as well.
    def current_user; controller.current_user end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
adva-0.1.4 lib/login/helper_integration.rb
adva-0.1.3 lib/login/helper_integration.rb
adva-0.1.2 lib/login/helper_integration.rb
adva-0.1.1 lib/login/helper_integration.rb
adva-0.1.0 lib/login/helper_integration.rb
adva_user-0.0.1 lib/login/helper_integration.rb
adva-0.0.1 adva_user/lib/login/helper_integration.rb