aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorclay shentrup <clay@brokenladder.com>2011-10-06 16:09:36 -0700
committerclay shentrup <clay@brokenladder.com>2011-10-06 16:09:36 -0700
commit0549ba10b30dc2b4d669f53359b67dd17c2ca6a6 (patch)
tree547bc683c68c896bcdec4270c003b4c65c326aff /railties
parenta17e5e24624d27467e3d7a52ff83c00140890557 (diff)
downloadrails-0549ba10b30dc2b4d669f53359b67dd17c2ca6a6.tar.gz
rails-0549ba10b30dc2b4d669f53359b67dd17c2ca6a6.tar.bz2
rails-0549ba10b30dc2b4d669f53359b67dd17c2ca6a6.zip
Clarifying ambiguous description of require_self in the asset pipeline
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/asset_pipeline.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index ccbc737f17..acf7495267 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -232,7 +232,7 @@ There's also a default +app/assets/stylesheets/application.css+ file which conta
The directives that work in the JavaScript files also work in stylesheets, obviously including stylesheets rather than JavaScript files. The +require_tree+ directive here works the same way as the JavaScript one, requiring all stylesheets from the current directory.
-In this example +require_self+ is used. This puts the CSS contained within the file (if any) at the top of any other CSS in this file unless +require_self+ is specified after another +require+ directive.
+In this example +require_self+ is used. This puts the CSS contained within the file (if any) at the precise location of the +require_self+ call. If +require_self+ is called more than once, only the last call is respected.
You can have as many manifest files as you need. For example the +admin.css+ and +admin.js+ manifest could contain the JS and CSS files that are used for the admin section of an application.