]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update applications.html 6149/head
authoryctay <yewchoontay@gmail.com>
Wed, 24 Dec 2014 04:21:10 +0000 (12:21 +0800)
committeryctay <yewchoontay@gmail.com>
Wed, 24 Dec 2014 04:21:10 +0000 (12:21 +0800)
File for configuring assets precompile have been moved. See https://github.com/rails/rails/commit/f612c2b0526e326eb6c25a7bbf375ac3ac793a3c

doc/pages/applications.html

index 125dd6cd3201dc599f3ef89557c823ed85e883a1..6e222e4dda793ec2e21dc8e84a810d2a632ecc47 100644 (file)
@@ -54,7 +54,13 @@ $(document).foundation();
 ```
 ### Configure Asset pipeline
 
-Add Modernizr to precompiled assets for production in `config/environments/production.rb`:
+Add Modernizr to precompiled assets for production in `config/initializers/assets.rb`:
+
+```ruby
+Rails.application.config.assets.precompile += %w( vendor/modernizr.js )
+```
+
+For Rails version < 4.2.0, add Modernizr in `config/environments/production.rb`:
 
 ```ruby
 config.assets.precompile += %w( vendor/modernizr.js )