Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

since v1.4.0 accept return AcceptType objects instead of strings

  • Loading branch information...
commit d6454c36be1b61dbf3d2ac1e7f5bf5f3258d9d85 1 parent 6da79a0
@vidbina vidbina authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sinatra/respond_with.rb
View
2  lib/sinatra/respond_with.rb
@@ -14,7 +14,7 @@ module Sinatra
# get '/' do
# data = { :name => 'example' }
# request.accept.each do |type|
- # case type
+ # case type.to_s
# when 'text/html'
# halt haml(:index, :locals => data)
# when 'text/json'
Please sign in to comment.
Something went wrong with that request. Please try again.