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/filtered_backtrace.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/sphinx_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/sphinx_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: FilteredBacktrace, Options, Render
Classes: ActiveRecordPanel, CachePanel, LogPanel, MemoryPanel, Panel, PanelApp, ParamsSignature, RackStaticBugAvoider, RailsInfoPanel, RedisPanel, RequestVariablesPanel, SQLPanel, SecurityError, SphinxPanel, TemplatesPanel, TimerPanel, Toolbar
Constant Summary
collapse
- VERSION =
"0.3.0"
Class Method Summary
collapse
Class Method Details
.disable ⇒ Object
34
35
36
|
# File 'lib/rack/bug.rb', line 34
def self.disable
Thread.current["rack-bug.enabled"] = false
end
|
.enable ⇒ Object
30
31
32
|
# File 'lib/rack/bug.rb', line 30
def self.enable
Thread.current["rack-bug.enabled"] = true
end
|
.enabled? ⇒ Boolean
38
39
40
|
# File 'lib/rack/bug.rb', line 38
def self.enabled?
Thread.current["rack-bug.enabled"] == true
end
|
.new(*args, &block) ⇒ Object
42
43
44
|
# File 'lib/rack/bug.rb', line 42
def self.new(*args, &block)
Toolbar.new(*args, &block)
end
|