Sha256: 9e62a2815f1cf64ca703ecdd930bf4e27589262b2ea89d5bfa18cde5cce40915

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

require 'sass/importers'

# 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.
class Sass::Importers::Filesystem

  # We want to ensure that all *.css.scss files are loaded as scss files
  def extensions_with_css
    extensions_without_css.merge('css.scss' => :scss)
  end
  alias_method_chain :extensions, :css

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
activeadmin-0.3.3 lib/active_admin/sass/css_loader.rb
activeadmin-0.3.2 lib/active_admin/sass/css_loader.rb
activeadmin-0.3.1 lib/active_admin/sass/css_loader.rb
activeadmin-0.3.0 lib/active_admin/sass/css_loader.rb
nsm-activeadmin-0.2.2 lib/active_admin/sass/css_loader.rb