class Sinatra::Base
def invoke_hook(name, *args)
def invoke_hook(name, *args) extensions.each { |e| e.send(name, *args) if e.respond_to?(name) } end
def invoke_hook(name, *args) extensions.each { |e| e.send(name, *args) if e.respond_to?(name) } end