mirror of https://github.com/rails/rails
depend on Zeitwerk 1.4.0
This commit is contained in:
parent
4a797074e4
commit
3d0850bfb8
|
@ -70,7 +70,7 @@ PATH
|
|||
i18n (>= 0.7, < 2)
|
||||
minitest (~> 5.1)
|
||||
tzinfo (~> 1.1)
|
||||
zeitwerk (~> 1.3, >= 1.3.4)
|
||||
zeitwerk (~> 1.4)
|
||||
rails (6.0.0.beta3)
|
||||
actioncable (= 6.0.0.beta3)
|
||||
actionmailbox (= 6.0.0.beta3)
|
||||
|
@ -517,7 +517,7 @@ GEM
|
|||
websocket-extensions (0.1.3)
|
||||
xpath (3.2.0)
|
||||
nokogiri (~> 1.8)
|
||||
zeitwerk (1.3.4)
|
||||
zeitwerk (1.4.0)
|
||||
|
||||
PLATFORMS
|
||||
java
|
||||
|
|
|
@ -34,5 +34,5 @@ Gem::Specification.new do |s|
|
|||
s.add_dependency "tzinfo", "~> 1.1"
|
||||
s.add_dependency "minitest", "~> 5.1"
|
||||
s.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.2"
|
||||
s.add_dependency "zeitwerk", "~> 1.3", ">= 1.3.4"
|
||||
s.add_dependency "zeitwerk", "~> 1.4"
|
||||
end
|
||||
|
|
|
@ -21,7 +21,11 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def autoloaded_constants
|
||||
(Rails.autoloaders.main.loaded + Rails.autoloaders.once.loaded).to_a
|
||||
cpaths = []
|
||||
Rails.autoloaders.each do |autoloader|
|
||||
cpaths.concat(autoloader.loaded_cpaths.to_a)
|
||||
end
|
||||
cpaths
|
||||
end
|
||||
|
||||
def autoloaded?(object)
|
||||
|
|
Loading…
Reference in New Issue