instance method
loading
Ruby on Rails edge
Since v5.0.7.2Signature
loading(&block)
No documentation comment.
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/dependencies/interlock.rb, line 13
def loading(&block)
ActiveSupport.deprecator.warn(
"ActiveSupport::Dependencies::Interlock#loading is deprecated and " \
"will be removed in Rails 9.0. The loading interlock is no longer " \
"used since Rails switched to Zeitwerk for autoloading."
)
yield if block
end
Defined in activesupport/lib/active_support/dependencies/interlock.rb line 13
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies::Interlock