instance method
loading
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
loading()
No documentation comment.
Source
# File activesupport/lib/active_support/dependencies/interlock.rb, line 12
def loading
@lock.exclusive(purpose: :load, compatible: [:load], after_compatible: [:load]) do
yield
end
end
Defined in activesupport/lib/active_support/dependencies/interlock.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies::Interlock