Skip to content

Instantly share code, notes, and snippets.

View Jampire's full-sized avatar
🖨️
Not a day without a line

Dzianis Kotau Jampire

🖨️
Not a day without a line
View GitHub Profile
if Rails.version == '2.3.8' && Gem.available?('mongrel', Gem::Requirement.new('~>1.1.5')) && self.class.const_defined?(:Mongrel)
# Pulled right from latest rack. Old looked like this in 1.1.0 version.
#
# def [](k)
# super(@names[k] ||= @names[k.downcase])
# end
#
module Rack