Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pull in rack_jsonp_middleware

  • Loading branch information...
commit 809c2e3d4470b694ba1a98c09f2aa07115f433e5 1 parent e0240a6
@rwilcox authored
View
1  rack_json_middleware/Gemfile
@@ -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'
View
4 rack_json_middleware/config/application.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.