lib/milkshake/loader.rb in milkshake-0.1.4 vs lib/milkshake/loader.rb in milkshake-0.1.5
- old
+ new
@@ -22,9 +22,10 @@
relative_path = %w( rails initializers ** *.rb )
paths = []
self.environment.gemspecs.each do |gemspec|
paths.concat Dir.glob(File.join(gemspec.full_gem_path, *relative_path))
end
+ paths.concat Dir.glob(File.join(Rails.root, 'rails/init.rb'))
paths.concat Dir.glob(File.join(Rails.root, *relative_path))
paths
end
end