From 40a9e19d173ea71572185b3acab3f4ea52473481 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 29 Mar 2015 15:58:02 -0700 Subject: Adding jsonp support and incrementing the hit counter. --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/application.rb b/config/application.rb index f12e289..6f95750 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,5 +22,7 @@ module DownloadsJesterpmNet # Do not swallow errors in after_commit/after_rollback callbacks. config.active_record.raise_in_transactional_callbacks = true + + config.middleware.use Rack::JSONP end end -- cgit v1.2.3