Sha256: 1499f0f8726f6327f6b53e6a40fde5184976ef90b1b7a608bf713106bbe7b33c

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

module Feste
  module Authentication
    module Clearance
      private 

      def current_user
        ::Clearance.
          configuration.
          user_model.
          where(remember_token: cookies[::Clearance.configuration.cookie_name]).
          where.not(remember_token: nil).
          first
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
feste-0.4.2 lib/feste/authentication/clearance.rb
feste-0.4.1 lib/feste/authentication/clearance.rb
feste-0.4.0 lib/feste/authentication/clearance.rb
feste-0.3.0 lib/feste/authentication/clearance.rb
feste-0.2.1 lib/feste/authentication/clearance.rb