Skip to content
Browse files

Mention technique for conditional inclusion.

  • Loading branch information...
1 parent 47ab91b commit bc35bade3392ccdcfd2b73a78f3b625acf3387f0 @tylerhunt committed Apr 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
6 README.md
@@ -45,6 +45,12 @@ can add it to the bottom of your `app/assets/javascripts/application.js` file:
//= require gauges
+If you'd only like the tracking code to be included in the production
+environment, create a file like `app/assets/javascripts/tracking.js.erb` with
+the following:
+
+ <% require_asset 'gauges' if Rails.env.production? %>
+
## Contributing

0 comments on commit bc35bad

Please sign in to comment.
Something went wrong with that request. Please try again.