Class: Sass::Importers::Filesystem

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/sass/css_loader.rb

Overview

This monkey patches the SASS filesystem importer to work with files that are named *.css.scss. This allows us to be compatible with both Rails 3.0.* and Rails 3.1

This should only be loaded in Rails 3.0 apps.

Instance Method Summary collapse

Instance Method Details

#extensions_with_cssObject

We want to ensure that all *.css.scss files are loaded as scss files



11
12
13
# File 'lib/active_admin/sass/css_loader.rb', line 11

def extensions_with_css
  extensions_without_css.merge('{css.,}scss' => :scss)
end