Module: Rack::Bug

Defined in:
lib/rack/bug/panel.rb,
lib/rack/bug/render.rb,
lib/rack/bug/options.rb,
lib/rack/bug/toolbar.rb,
lib/rack/bug/panel_app.rb,
lib/rack/bug/panels/log_panel.rb,
lib/rack/bug/panels/sql_panel.rb,
lib/rack/bug/params_signature.rb,
lib/rack/bug/panels/cache_panel.rb,
lib/rack/bug/panels/redis_panel.rb,
lib/rack/bug/panels/timer_panel.rb,
lib/rack/bug/panels/memory_panel.rb,
lib/rack/bug/panels/sql_panel/query.rb,
lib/rack/bug/panels/templates_panel.rb,
lib/rack/bug/panels/rails_info_panel.rb,
lib/rack/bug/panels/cache_panel/stats.rb,
lib/rack/bug/panels/redis_panel/stats.rb,
lib/rack/bug/panels/active_record_panel.rb,
lib/rack/bug/panels/sql_panel/panel_app.rb,
lib/rack/bug/panels/cache_panel/panel_app.rb,
lib/rack/bug/panels/templates_panel/trace.rb,
lib/rack/bug/panels/request_variables_panel.rb,
lib/rack/bug/panels/templates_panel/rendering.rb,
lib/rack/bug.rb

Defined Under Namespace

Modules: Options, Render Classes: ActiveRecordPanel, CachePanel, LogPanel, MemoryPanel, Panel, PanelApp, ParamsSignature, RackStaticBugAvoider, RailsInfoPanel, RedisPanel, RequestVariablesPanel, SQLPanel, SecurityError, TemplatesPanel, TimerPanel, Toolbar

Constant Summary collapse

VERSION =
"0.2.2.pre"

Class Method Summary collapse

Class Method Details

.disableObject



32
33
34
# File 'lib/rack/bug.rb', line 32

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

.enableObject



28
29
30
# File 'lib/rack/bug.rb', line 28

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

.enabled?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/rack/bug.rb', line 36

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

.new(*args, &block) ⇒ Object



40
41
42
# File 'lib/rack/bug.rb', line 40

def self.new(*args, &block)
  Toolbar.new(*args, &block)
end