Skip to content

Instantly share code, notes, and snippets.

@jeffrydegrande
Created July 15, 2010 03:02
Show Gist options
  • Save jeffrydegrande/476440 to your computer and use it in GitHub Desktop.
Save jeffrydegrande/476440 to your computer and use it in GitHub Desktop.
$ git diff
diff --git a/lib/sprockets_on_heroku.rb b/lib/sprockets_on_heroku.rb
index 781b9cf..77b3153 100644
--- a/lib/sprockets_on_heroku.rb
+++ b/lib/sprockets_on_heroku.rb
@@ -44,7 +44,9 @@ class SprocketsOnHeroku
def initialize_sprockets
secretary.concatenation.save_to(javascript_location_on_heroku)
minify
- self.class.original_sprockets_location = '/sprockets.js'
+ if RAILS_ENV == 'production'
+ self.class.original_sprockets_location = '/sprockets.js'
+ end
end
def minify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment