Sha256: 4f37e70ab34df049af8cb038e2d84ec12279bb55a0b1e41e0b15b878c64c8a3e

Contents?: true

Size: 304 Bytes

Versions: 8

Compression:

Stored size: 304 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

8 entries across 8 versions & 2 rubygems

Version Path
tribeca_cms-0.1.1 lib/locomotive/liquid/drops/current_user.rb
tribeca_cms-2.0.0.rc12 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc12 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc11 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc10 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc9 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc8 lib/locomotive/liquid/drops/current_user.rb
locomotive_cms-2.0.0.rc7 lib/locomotive/liquid/drops/current_user.rb