search for init in lib

This commit is contained in:
Thomas Reynolds 2011-08-29 12:35:08 -07:00
parent 9500df200f
commit aa2095094f

View file

@ -157,7 +157,7 @@ module Middleman
autoload :DirectoryIndexes, "middleman/features/directory_indexes" autoload :DirectoryIndexes, "middleman/features/directory_indexes"
end end
EXTENSION_FILE = "middleman_init.rb" EXTENSION_FILE = File.join("lib", "middleman_init.rb")
def self.load_extensions_in_path def self.load_extensions_in_path
extensions = rubygems_latest_specs.select do |spec| extensions = rubygems_latest_specs.select do |spec|
spec_has_file?(spec, EXTENSION_FILE) spec_has_file?(spec, EXTENSION_FILE)