Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Vendored gem paths now being loaded if they exist [#2204 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 9d906707bea997016fd370e33e12dbc21cfcc531 1 parent 5f1d646
John Dzak jdzak authored lifo committed
Showing with 3 additions and 0 deletions.
  1. +1 −0  railties/environments/boot.rb
  2. +2 −0  railties/test/boot_test.rb
1  railties/environments/boot.rb
View
@@ -44,6 +44,7 @@ class VendorBoot < Boot
def load_initializer
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
Rails::Initializer.run(:install_gem_spec_stubs)
+ Rails::GemDependency.add_frozen_gem_path
end
end
2  railties/test/boot_test.rb
View
@@ -62,6 +62,8 @@ class VendorBootTest < Test::Unit::TestCase
def test_load_initializer_requires_from_vendor_rails
boot = VendorBoot.new
boot.expects(:require).with("#{RAILS_ROOT}/vendor/rails/railties/lib/initializer")
+ Rails::Initializer.expects(:run).with(:install_gem_spec_stubs)
+ Rails::GemDependency.expects(:add_frozen_gem_path)
boot.load_initializer
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.