Load from root bundler when running from git

This commit is contained in:
Thomas Reynolds 2012-05-26 14:15:36 -07:00
parent 1d90d03dd8
commit 3b847696ff
4 changed files with 127 additions and 116 deletions

View file

@ -137,7 +137,10 @@ module Middleman
instance_eval File.read(local_config), local_config, 1
end
activate(:sprockets) if autoload_sprockets
if autoload_sprockets
require "middleman-sprockets"
activate(:sprockets)
end
run_hook :build_config if build?
run_hook :development_config if development?

View file

@ -88,7 +88,7 @@ module Middleman
extensions = rubygems_latest_specs.select do |spec|
spec_has_file?(spec, EXTENSION_FILE)
end
extensions.each do |spec|
require spec.name
end