sprockets-sass was overwriting image-url and breaking relative assets. Fixes #256

This commit is contained in:
Thomas Reynolds 2012-02-05 11:43:19 -08:00
parent c8c6a1938e
commit 8286879f36
9 changed files with 35 additions and 56 deletions

View file

@ -97,17 +97,17 @@ module Middleman::CoreExtensions::Extensions
# @param [Symbol, Module] ext Which extension to activate
# @return [void]
def activate(ext, options={}, &block)
if !ext.is_a?(Module)
ext = ::Middleman::Extensions.load(ext.to_sym)
ext_module = if ext.is_a?(Module)
ext
else
::Middleman::Extensions.load(ext.to_sym)
end
if ext.nil?
if ext_module.nil?
puts "== Unknown Extension: #{ext}"
elsif ext.is_a?(String)
puts ext
else
puts "== Activating: #{ext}" if logging?
self.class.register(ext, options, &block)
self.class.register(ext_module, options, &block)
end
end