Delete AS::Dependencies.load_once_path?

This commit is contained in:
Xavier Noria 2021-08-18 23:18:44 +02:00
parent bde4b04323
commit c1a89b57df
1 changed files with 0 additions and 6 deletions

View File

@ -113,12 +113,6 @@ module ActiveSupport # :nodoc:
nil
end
def load_once_path?(path)
# to_s works around a ruby issue where String#start_with?(Pathname)
# will raise a TypeError: no implicit conversion of Pathname into String
autoload_once_paths.any? { |base| path.start_with?(base.to_s) }
end
# Get the reference for class named +name+.
# Raises an exception if referenced class does not exist.
def constantize(name)