Class: WebConsole::WhinyRequest
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- WebConsole::WhinyRequest
- Defined in:
- lib/web_console/whiny_request.rb
Overview
Noisy wrapper around Request
.
If any calls to permitted?
and acceptable_content_type?
return false, an info log message will be displayed in users’ logs.
Instance Method Summary collapse
Instance Method Details
#permitted? ⇒ Boolean
9 10 11 12 13 14 |
# File 'lib/web_console/whiny_request.rb', line 9 def permitted? whine_unless request.permitted? do "Cannot render console from #{request.strict_remote_ip}! " \ "Allowed networks: #{request.}" end end |