class method
self.add_frozen_gem_path
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.add_frozen_gem_path()
No documentation comment.
Source
# File railties/lib/rails/gem_dependency.rb, line 19
def self.add_frozen_gem_path
@@paths_loaded ||= begin
source_index = Rails::VendorGemSourceIndex.new(Gem.source_index)
Gem.clear_paths
Gem.source_index = source_index
# loaded before us - we can't change them, so mark them
Gem.loaded_specs.each do |name, spec|
@@framework_gems[name] = spec
end
true
end
end
Defined in railties/lib/rails/gem_dependency.rb line 19
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::GemDependency