From 21df320f71b08c0f9db54537a4465eb855bc7ad3 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 18 Apr 2016 11:18:37 +0800 Subject: [PATCH] FIX: Duplicated file. --- lib/freedom_patches/sass_rails_template.rb | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 lib/freedom_patches/sass_rails_template.rb diff --git a/lib/freedom_patches/sass_rails_template.rb b/lib/freedom_patches/sass_rails_template.rb deleted file mode 100644 index 83dd0615c8c..00000000000 --- a/lib/freedom_patches/sass_rails_template.rb +++ /dev/null @@ -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)