From 75e2111c447b53ca12cd9c47767b6adc8b6262ed Mon Sep 17 00:00:00 2001 From: Thilo Utke Date: Thu, 9 Jan 2014 18:06:06 +0100 Subject: [PATCH] added info about asset pipline config Ammnded the documentation. In order to have modernizer available on production you have to add it to the precompile config to avoid issue #3672. Solution by @btsai --- doc/pages/applications.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/pages/applications.html b/doc/pages/applications.html index a537b2646..54d375c0b 100644 --- a/doc/pages/applications.html +++ b/doc/pages/applications.html @@ -49,6 +49,13 @@ Append the following lines to your `app/assets/javascripts/application.js` file: //= require foundation $(document).foundation(); ``` +### Configure Asset pipeline + +Add Modernizr to precompiled assets for production in `config/enviroments/production.rb`. + +```ruby +config.assets.precompile += %w( vendor/modernizr.js ) +``` ### Add Modernizr -- 2.47.2