From: David Lutterkort lutter@redhat.com
With Sinatra 0.9.4, there's no Sinatra::mime_type; use the wrapper method from Helpers. --- server/libexec/lib/sinatra/respond_to.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/libexec/lib/sinatra/respond_to.rb b/server/libexec/lib/sinatra/respond_to.rb index 8e54bda..3365351 100644 --- a/server/libexec/lib/sinatra/respond_to.rb +++ b/server/libexec/lib/sinatra/respond_to.rb @@ -56,7 +56,7 @@ module Sinatra ext = options.default_content end if ext - @mime_types = [ mime_type(ext) ] + @mime_types = [ Helpers::mime_type(ext) ] format ext end end