Permalink
Browse files

Deprecate mime

  • Loading branch information...
1 parent d8f2438 commit 47748931f932c3a538c82a42eec306031646256d @sr sr committed Oct 14, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/main.rb
View
@@ -25,6 +25,7 @@ class Default < Base
include Sinatra::Delegator
def mime(ext, type)
+ warn 'mime is deprecated; use mime_type instead.'
ext = ".#{ext}" unless ext.to_s[0] == ?.
Rack::Mime::MIME_TYPES[ext.to_s] = type
end

0 comments on commit 4774893

Please sign in to comment.