class method
self.execute_hook
Ruby on Rails 4.2.9
Since v3.0.20 Last seen in v4.2.9Signature
self.execute_hook(base, options, block)
No documentation comment.
Parameters
-
basereq -
optionsreq -
blockreq
Source
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 34
def self.execute_hook(base, options, block)
if options[:yield]
block.call(base)
else
base.instance_eval(&block)
end
end
Defined in activesupport/lib/active_support/lazy_load_hooks.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport