module UTF8Cleaner
  class Railtie < Rails::Railtie
    initializer "utf8-cleaner.insert_middleware" do |app|
      app.config.middleware.insert_before 0, "UTF8Cleaner::Middleware"
    end
  end
end
module UTF8Cleaner
  class Railtie < Rails::Railtie
    initializer "utf8-cleaner.insert_middleware" do |app|
      app.config.middleware.insert_before 0, UTF8Cleaner::Middleware
    end
  end
end

Remove Rails 5 / Rack deprecation warning
Remove Rails 5 / Rack deprecation warning

Rails 5 / Rack 2 issues a deprecation warning when attempting to modify
the middleware stack with a string-enclosed middleware constant.
