Created
July 15, 2010 03:02
-
-
Save jeffrydegrande/476440 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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