Fix asset precompilation issues.

This commit is contained in:
Vikhyat Korrapati 2014-04-01 20:19:34 +05:30
parent 317f9bcd08
commit 45a23f524a
3 changed files with 4 additions and 1 deletions

View file

@ -4,7 +4,7 @@
class DiscourseSassImporter < Sass::Importers::Filesystem
GLOB = /\*|\[.+\]/
def initialize(root)
def initialize(*args)
@root = Rails.root.join('app', 'assets', 'stylesheets').to_s
@same_name_warnings = Set.new
end

View file

@ -16,6 +16,9 @@ task 'assets:precompile:before' do
# let's make precompile faster using redis magic
require 'sprockets'
require 'digest/sha1'
require_dependency 'discourse_sass_importer'
Sprockets::SassImporter = DiscourseSassImporter
module ::Sprockets