instance method
autoload_under
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
autoload_under(path)
No documentation comment.
Parameters
-
pathreq
Source
# File activesupport/lib/active_support/dependencies/autoload.rb, line 50
def autoload_under(path)
@_under_path, old_path = path, @_under_path
yield
ensure
@_under_path = old_path
end
Defined in activesupport/lib/active_support/dependencies/autoload.rb line 50
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Autoload