Class: MissionControl::Web::RequestFilter
- Inherits:
-
Object
- Object
- MissionControl::Web::RequestFilter
- Defined in:
- lib/mission_control/web/request_filter.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #action ⇒ Object
-
#initialize(request) ⇒ RequestFilter
constructor
A new instance of RequestFilter.
Constructor Details
#initialize(request) ⇒ RequestFilter
Returns a new instance of RequestFilter.
5 6 7 |
# File 'lib/mission_control/web/request_filter.rb', line 5 def initialize(request) @request = request end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
3 4 5 |
# File 'lib/mission_control/web/request_filter.rb', line 3 def request @request end |
Instance Method Details
#action ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/mission_control/web/request_filter.rb', line 9 def action request.fetch_header("mission_control.action") do if MissionControl::Web.host_application.route_disabled?(request.path) :disallowed end end end |