diff options
author | Ray Baxter <ray.baxter@gmail.com> | 2011-07-17 09:31:23 -0700 |
---|---|---|
committer | Ray Baxter <ray.baxter@gmail.com> | 2011-07-17 09:31:23 -0700 |
commit | a4a309f2bc131d7782b3ddf9964c245398951f94 (patch) | |
tree | 9d3224c38118555918511c6c531b698b55be9e26 /railties/guides/source/configuring.textile | |
parent | a92780e72a45bbafc9e24c429d83bfc13c7afaaf (diff) | |
parent | 5187264e19df0bb0e36150803e3c69b2e0e26a74 (diff) | |
download | rails-a4a309f2bc131d7782b3ddf9964c245398951f94.tar.gz rails-a4a309f2bc131d7782b3ddf9964c245398951f94.tar.bz2 rails-a4a309f2bc131d7782b3ddf9964c245398951f94.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r-- | railties/guides/source/configuring.textile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 8e6010ff79..7ed958be08 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -120,10 +120,12 @@ h4. Configuring Assets 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. -* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem. - * +config.assets.enabled+ a flag that controls whether the asset pipeline is enabled. It is explicitly initialized in +config/application.rb+. +* +config.assets.compress+ a flag that enables the compression of compiled assets. It is explicitly set to true in +config/production.rb+. + +* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem. + * +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. * +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. |