Class | Rack::File |
In: |
lib/sinatra/compat.rb
|
Parent: | Object |
# File lib/sinatra/compat.rb, line 38 38: def self.const_missing(const_name) 39: if const_name == :MIME_TYPES 40: hash = Hash.new { |hash,key| Rack::Mime::MIME_TYPES[".#{key}"] } 41: const_set :MIME_TYPES, hash 42: sinatra_warn 'Rack::File::MIME_TYPES is deprecated; use Rack::Mime instead.' 43: hash 44: else 45: super 46: end 47: end