Skip to content
This repository
Browse code

[configuring] add doc for missing assets attribute

.compress turns on the compression using the types
specified in other config options
  • Loading branch information...
commit 56a8997b985a0676404e53ce1f5a55b4ae5b4570 1 parent a957300
Richard Hulse rhulse authored fxn committed

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 railties/guides/source/configuring.textile
6 railties/guides/source/configuring.textile
Source Rendered
@@ -120,10 +120,12 @@ h4. Configuring Assets
120 120
121 121 Rails 3.1, by default, is set up to use the +sprockets+ gem to manage assets within an application. This gem concatenates and compresses assets in order to make serving them much less painful.
122 122
123   -* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem.
124   -
125 123 * +config.assets.enabled+ a flag that controls whether the asset pipeline is enabled. It is explicitly initialized in +config/application.rb+.
126 124
  125 +* +config.assets.compress+ a flag that enables the compression of compiled assets. It is explicitly set to true in +config/production.rb+.
  126 +
  127 +* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem.
  128 +
127 129 * +config.assets.js_compressor+ defines the JavaScript compressor to use. Possible values are +:closure+, +:uglifier+ and +:yui+ which require the use of the +closure-compiler+, +uglifier+ or +yui-compressor+ gems respectively.
128 130
129 131 * +config.assets.paths+ contains the paths which are used to look for assets. Appending paths to this configuration option will cause those paths to be used in the search for assets.

0 comments on commit 56a8997

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