From 2e679ac262726045e4273f04ce8a55d97f621dd3 Mon Sep 17 00:00:00 2001 From: Akshay Vishnoi Date: Thu, 24 Jul 2014 11:39:41 +0530 Subject: Calling require_self twice in css raises Sprockets::ArgumentError exception [ci skip] --- guides/source/asset_pipeline.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'guides/source') diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index dd018c0da8..e31cefa5bb 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -493,8 +493,7 @@ The directives that work in JavaScript files also work in stylesheets 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 precise location of the `require_self` call. If -`require_self` is called more than once, only the last call is respected. +file (if any) at the precise location of the `require_self` call. NOTE. If you want to use multiple Sass files, you should generally use the [Sass `@import` rule](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import) instead of these Sprockets directives. When using Sprockets directives, Sass files exist within -- cgit v1.2.3