Load from root bundler when running from git
This commit is contained in:
parent
1d90d03dd8
commit
3b847696ff
4 changed files with 127 additions and 116 deletions
|
@ -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?
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue