summaryrefslogtreecommitdiff
path: root/lib/gitlab/middleware/release_controller.rb
blob: a21d718d51c75b7cb306d4e3cccca4a613fb4b94 (plain)
1
2
3
4
5
6
7
8
9
module Gitlab
  module Middleware
    ReleaseController = Struct.new(:app) do
      def call(env)
        app.call(env).tap { env.delete('action_controller.instance') }
      end
    end
  end
end