Sha256: 4ff697a38d0a8d019fc39ac0dbfa0397f380b44ef48a7e7aa645ddd3c663f945

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

require 'rack/insight/app'

module Rack
  module Insight
    class << self

      include Logging

      def enable
        Thread.current["rack-insight.enabled"] = true
      end

      def disable
        Thread.current["rack-insight.enabled"] = false
      end

      def enabled?
        Thread.current["rack-insight.enabled"] == true
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-insight-0.5.6 lib/rack/insight.rb
rack-insight-0.5.5 lib/rack/insight.rb