Sha256: 3f673b99ec352ed60fb8b9a8c90d901b48dbeeec84274a3c356ac95b4b281ef9

Contents?: true

Size: 364 Bytes

Versions: 36

Compression:

Stored size: 364 Bytes

Contents

module Locomotive
  module Steam
    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
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
locomotivecms_steam-1.4.0 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.4.0.rc2 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.4.0.rc1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.4.0.pre.rc.1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.3.0 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.3.0.rc2 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.2 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.3.0.rc1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.0 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.0.rc3 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.0.rc2 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.0.rc1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.2.0.beta1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.0 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.0.rc3 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.0.rc2 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.1.0.rc1 lib/locomotive/steam/liquid/drops/current_user.rb
locomotivecms_steam-1.0.1 lib/locomotive/steam/liquid/drops/current_user.rb