Sha256: e22fcf6ca56ffd50440f6a731b05c52b45e832c3eb2f263af075061a103aaeb6

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

module Locomotive
  module Liquid
    module Drops
      class CurrentUser < Base

        def logged_in?
          _source.present?
        end

        def name
          _source.name if logged_in?
        end

        def email
          _source.email if logged_in?
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_cms-2.2.3 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.2.2 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.2.1 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.2.0 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.1.4 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.1.3 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.1.2 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.1.1 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.1.0 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.3 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.2 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.1 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0 lib/locomotive/liquid/drops/current_user.rb