Permalink
Browse files

pull in rack_jsonp_middleware

  • Loading branch information...
rwilcox committed Apr 20, 2011
1 parent e0240a6 commit 809c2e3d4470b694ba1a98c09f2aa07115f433e5
Showing with 5 additions and 0 deletions.
  1. +1 −0 rack_json_middleware/Gemfile
  2. +4 −0 rack_json_middleware/config/application.rb
@@ -6,6 +6,7 @@ gem 'rails', '3.0.7'
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
+gem 'rack-jsonp-middleware'
# Use unicorn as the web server
# gem 'unicorn'
@@ -2,6 +2,8 @@
require 'rails/all'
+require 'rack/jsonp'
+
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
@@ -38,5 +40,7 @@ class Application < Rails::Application
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
+
+ config.middleware.use Rack::JSONP
end
end

0 comments on commit 809c2e3

Please sign in to comment.