Class: Rack::Insight::EnableButton
- Inherits:
-
Toolbar
- Object
- Toolbar
- Rack::Insight::EnableButton
- Includes:
- PathMatchFilters, Render
- Defined in:
- lib/rack/insight/enable-button.rb
Instance Method Summary collapse
Methods included from PathMatchFilters
#match_path_filters?, #to_regex
Methods included from Render
#compile, #compile!, #compiled_source, #method_name, #method_name_without_locals, #render_template, #signed_params
Methods included from Logging
Instance Method Details
#okay_to_modify? ⇒ Boolean
6 7 8 9 |
# File 'lib/rack/insight/enable-button.rb', line 6 def okay_to_modify? super return !match_path_filters?(@env["rack-insight.path_filters"], @env["REQUEST_PATH"]) end |
#render ⇒ Object
11 12 13 |
# File 'lib/rack/insight/enable-button.rb', line 11 def render render_template("enable-button") end |