Skip to content

Commit

Permalink
pull in rack_jsonp_middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
rwilcox committed Apr 20, 2011
1 parent e0240a6 commit 809c2e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions rack_json_middleware/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions rack_json_middleware/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.