You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/utopia/controller/middleware.rb
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
6
6
require_relative"../path"
7
7
require_relative"../middleware"
8
-
require_relative"../context"
9
8
10
9
require_relative"variables"
11
10
require_relative"base"
@@ -92,7 +91,7 @@ def invoke_controllers(request)
92
91
controller_path=Path.new
93
92
94
93
# Controller instance variables which eventually get processed by the view:
95
-
variables=Context.variables
94
+
variables=Controller.current
96
95
97
96
whilerequest_path.components.any?
98
97
# We copy one path component from the relative path to the controller path at a time. The controller, when invoked, can modify the relative path (by assigning to relative_path.components). This allows for controller-relative rewrites, but only the remaining path postfix can be modified.
0 commit comments