instance method
autoload_under
Ruby on Rails 4.0.13
Since v3.0.20Signature
autoload_under(path)
No documentation comment.
Parameters
-
pathreq
Source
# File activesupport/lib/active_support/dependencies/autoload.rb, line 48
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 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Autoload