diff options
Diffstat (limited to 'activesupport/lib/active_support/lazy_load_hooks.rb')
-rw-r--r-- | activesupport/lib/active_support/lazy_load_hooks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/lazy_load_hooks.rb b/activesupport/lib/active_support/lazy_load_hooks.rb index 67b54b45ea..b84c7253a0 100644 --- a/activesupport/lib/active_support/lazy_load_hooks.rb +++ b/activesupport/lib/active_support/lazy_load_hooks.rb @@ -28,6 +28,8 @@ module ActiveSupport end end + # Declares a block that will be executed when a Rails component is fully + # loaded. def on_load(name, options = {}, &block) @loaded[name].each do |base| execute_hook(base, options, block) |