Commit f343345f authored by Robert Speicher's avatar Robert Speicher

Move Rack::Attack prepend outside class definition

parent 2f049c66
...@@ -43,8 +43,6 @@ class Rack::Attack ...@@ -43,8 +43,6 @@ class Rack::Attack
end end
class Request class Request
prepend ::EE::Gitlab::Rack::Attack::Request # rubocop: disable Cop/InjectEnterpriseEditionModule
def unauthenticated? def unauthenticated?
!authenticated_user_id([:api, :rss, :ics]) !authenticated_user_id([:api, :rss, :ics])
end end
...@@ -70,3 +68,5 @@ class Rack::Attack ...@@ -70,3 +68,5 @@ class Rack::Attack
end end
end end
end end
::Rack::Attack::Request.prepend(::EE::Gitlab::Rack::Attack::Request)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment