class Sinatra::Base
def filter!(type, base = self.class)
def filter!(type, base = self.class) filter! type, base.superclass if base.superclass.respond_to?(:filters) base.filters[type].each { |block| instance_eval(&block) } end
def filter!(type, base = self.class) filter! type, base.superclass if base.superclass.respond_to?(:filters) base.filters[type].each { |block| instance_eval(&block) } end