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)