Sha256: bbc177197ef9016e2dda23e6b54f060510efe60dd4f4c15b9a04c3b6ea1a3375

Contents?: true

Size: 384 Bytes

Versions: 27

Compression:

Stored size: 384 Bytes

Contents

require 'logger'
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

27 entries across 27 versions & 1 rubygems

Version Path
rack-insight-0.6.4 lib/rack/insight.rb
rack-insight-0.6.3 lib/rack/insight.rb
rack-insight-0.6.2 lib/rack/insight.rb
rack-insight-0.5.30 lib/rack/insight.rb
rack-insight-0.5.29 lib/rack/insight.rb
rack-insight-0.5.28 lib/rack/insight.rb
rack-insight-0.5.27 lib/rack/insight.rb
rack-insight-0.5.26 lib/rack/insight.rb
rack-insight-0.5.25 lib/rack/insight.rb
rack-insight-0.5.24 lib/rack/insight.rb
rack-insight-0.5.23 lib/rack/insight.rb
rack-insight-0.5.22 lib/rack/insight.rb
rack-insight-0.5.21 lib/rack/insight.rb
rack-insight-0.5.20 lib/rack/insight.rb
rack-insight-0.5.19 lib/rack/insight.rb
rack-insight-0.5.18 lib/rack/insight.rb
rack-insight-0.5.17 lib/rack/insight.rb
rack-insight-0.5.16 lib/rack/insight.rb
rack-insight-0.5.15 lib/rack/insight.rb
rack-insight-0.5.14 lib/rack/insight.rb