Module: ActiveSupport::Dependencies::ZeitwerkIntegration::RequireDependency
- Defined in:
- lib/active_support/dependencies/zeitwerk_integration.rb
Instance Method Summary collapse
Instance Method Details
#require_dependency(filename) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/active_support/dependencies/zeitwerk_integration.rb', line 46 def require_dependency(filename) filename = filename.to_path if filename.respond_to?(:to_path) if abspath = ActiveSupport::Dependencies.search_for_file(filename) require abspath else require filename end end |