method
with_execution_control
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::LazyLoadHooks
with_execution_control(name, block, once)private
No documentation available.
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 58
def with_execution_control(name, block, once)
unless @run_once[name].include?(block)
@run_once[name] << block if once
yield
end
end