lib/web_system/dev/request_command.rb in lizarb-1.0.2 vs lib/web_system/dev/request_command.rb in lizarb-1.0.3
- old
+ new
@@ -54,11 +54,11 @@
@env = {}
@env["REQUEST_PATH"] = path
request_panel.find @env
- @request_class = @env["LIZA_REQUEST_CLASS"]
+ @request_class = @env["LIZA_REQUEST_CLASS"] || raise("No request class found")
puts render "find.txt"
end
def get_request
@@ -88,10 +88,10 @@
end
# helpers
def request_panel
- Liza.const(:web_box).requests
+ @request_panel ||= WebBox[:request]
end
end
__END__