Class: Rack::Bug::PanelApp
- Inherits:
-
Object
- Object
- Rack::Bug::PanelApp
show all
- Includes:
- Render
- Defined in:
- lib/rack/bug/panel_app.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Render
#compile, #compile!, #compiled_source, #method_name, #method_name_without_locals, #signed_params
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
7
8
9
|
# File 'lib/rack/bug/panel_app.rb', line 7
def request
@request
end
|
Instance Method Details
#call(env) ⇒ Object
9
10
11
12
|
# File 'lib/rack/bug/panel_app.rb', line 9
def call(env)
@request = Rack::Request.new(env)
dispatch
end
|
#not_found ⇒ Object
22
23
24
|
# File 'lib/rack/bug/panel_app.rb', line 22
def not_found
[404, {}, []]
end
|
#params ⇒ Object
18
19
20
|
# File 'lib/rack/bug/panel_app.rb', line 18
def params
@request.GET
end
|
#render_template(*args) ⇒ Object
14
15
16
|
# File 'lib/rack/bug/panel_app.rb', line 14
def render_template(*args)
Rack::Response.new([super]).to_a
end
|
#validate_params ⇒ Object
26
27
28
|
# File 'lib/rack/bug/panel_app.rb', line 26
def validate_params
ParamsSignature.new(request).validate!
end
|