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