Permalink
Browse files

use Rack::JSONP to provide jsonp support

  • Loading branch information...
1 parent a9ca595 commit 8f8ab3070ab65dad618a0da4641e51b1bf6c5a87 @erwaller erwaller committed May 10, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/soulmate/server.rb
View
@@ -1,11 +1,14 @@
require 'sinatra/base'
require 'soulmate'
+require 'rack/contrib'
module Soulmate
class Server < Sinatra::Base
include Helpers
+ use Rack::JSONP
+
before do
content_type 'application/json', :charset => 'utf-8'
end

0 comments on commit 8f8ab30

Please sign in to comment.