FIX: Duplicated file.

This commit is contained in:
Guo Xiang Tan 2016-04-18 11:18:37 +08:00
parent 256d7a00e9
commit 21df320f71
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
# sass-rails expects an actual file to exists when calling `@import`. However,
# we don't actually create the files for our special imports but rather inject
# them dynamically.
module Discourse
module Sprockets
module Resolve
def resolve(path, options = {})
return [path, []] if DiscourseSassImporter.special_imports.has_key?(File.basename(path, '.scss'))
super
end
end
end
end
# Call `prepend` directly once we drop support for Ruby 2.0.0.
Sprockets::Base.send(:prepend, Discourse::Sprockets::Resolve)