diff options
Diffstat (limited to 'railties/lib/rails/gem_dependency.rb')
-rw-r--r-- | railties/lib/rails/gem_dependency.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb index 8d6a748e4c..0b2e6eb93d 100644 --- a/railties/lib/rails/gem_dependency.rb +++ b/railties/lib/rails/gem_dependency.rb @@ -14,8 +14,7 @@ module Rails end @lib = options[:lib] @source = options[:source] - @loaded = false - @load_paths_added = false + @loaded = @frozen = @load_paths_added = false @unpack_directory = nil end @@ -28,6 +27,7 @@ module Rails gem *args else $LOAD_PATH << File.join(unpacked_paths.first, 'lib') + @frozen = true end @load_paths_added = true rescue Gem::LoadError @@ -47,6 +47,10 @@ module Rails $!.backtrace.each { |b| puts b } end + def frozen? + @frozen + end + def loaded? @loaded end |