method
load_once_path?
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::Dependencies
load_once_path?(path)public
No documentation available.
# File activesupport/lib/active_support/dependencies.rb, line 476
def load_once_path?(path)
# to_s works around a ruby issue where String#starts_with?(Pathname)
# will raise a TypeError: no implicit conversion of Pathname into String
autoload_once_paths.any? { |base| path.starts_with? base.to_s }
end