Is there any way to MODIFY (NOT replace) a middleware in rails?
So instead of:
config.middleware.delete ::Rack::Cache
config.middleware.use ::Rack::Cache, :metastore => "rails:/", :entitystore => "rails:/", :verbose => false
I want to simply write something like config.middleware.find!(::Rack::Cache).verbose = false.
UPDATE: The reason to do it is because the capybara-webkit prints tons of messages when running from cucumber.
I ended up with:
This worked for my particular case (Rails cache was used by Dragonfly and wasn’t inserted anymore).
I don’t think there is a way of doing what I originally asked though.