instance method
with_execution_control
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
with_execution_control(name, block, once)
No documentation comment.
Parameters
-
namereq -
blockreq -
oncereq
Source
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 83
def with_execution_control(name, block, once)
unless @run_once[name].include?(block)
@run_once[name] << block if once
yield
end
end
Defined in activesupport/lib/active_support/lazy_load_hooks.rb line 83
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::LazyLoadHooks