module ActiveSupport
def self.execute_hook(base, options, block)
def self.execute_hook(base, options, block) if options[:yield] block.call(base) else base.instance_eval(&block) end end
def self.execute_hook(base, options, block) if options[:yield] block.call(base) else base.instance_eval(&block) end end