My setup: Rails 3.0.9, Ruby 1.9.2
Due to a bug in Rack 1.2.3, I’m attempting to override Rack::Utils::Multipart.parse_multipart by creating a new file
rack_parse_multipart.rb
module Rack
module Utils
module Multipart
def self.parse_multipart(env)
...my changes...
end
end
end
end
Now I just need to figure out where I require this file, can someone point me in the right direction? Thanks in advance for your help.
For others having problems with this Rack 1.2.3 bug, there is a nice copy-paste solution here https://github.com/rack/rack/issues/186
goes in config/initializers