Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
49cc710e
Commit
49cc710e
authored
Apr 12, 2021
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove patch from labkit_middleware.rb
parent
fc2b0569
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
config/initializers/labkit_middleware.rb
config/initializers/labkit_middleware.rb
+0
-16
No files found.
config/initializers/labkit_middleware.rb
View file @
49cc710e
...
...
@@ -3,22 +3,6 @@
# partial backport of https://github.com/rails/rails/pull/38169
# this is in order to be able to re-order rack middlewares.
if
ActionDispatch
::
MiddlewareStack
.
method_defined?
(
:move
)
warn
"`move` is now defined in in ActionDispatch itself: https://github.com/rails/rails/pull/38169, please remove this patch from
#{
__FILE__
}
"
else
module
ActionDispatch
class
MiddlewareStack
def
move
(
target
,
source
)
source_index
=
assert_index
(
source
,
:before
)
source_middleware
=
middlewares
.
delete_at
(
source_index
)
target_index
=
assert_index
(
target
,
:before
)
middlewares
.
insert
(
target_index
,
source_middleware
)
end
end
end
end
unless
Rails
::
Configuration
::
MiddlewareStackProxy
.
method_defined?
(
:move
)
module
Rails
module
Configuration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment