Sha256: 4c16d397efd43a9d3cbb35b61e05bd63e63c6ad32223575253be161d9bd11064

Contents?: true

Size: 297 Bytes

Versions: 3

Compression:

Stored size: 297 Bytes

Contents

module Locomotive
  module Steam
    module Liquid
      module Drops

        class SessionProxy < ::Liquid::Drop

          def before_method(meth)
            request = @context.registers[:request]
            request.session[meth.to_sym]
          end

        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
locomotivecms_steam-0.1.2.pre.beta lib/locomotive/steam/liquid/drops/session_proxy.rb
locomotivecms_steam-0.1.1 lib/locomotive/steam/liquid/drops/session_proxy.rb
locomotivecms_steam-0.1.0 lib/locomotive/steam/liquid/drops/session_proxy.rb