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