Fix failing tests in new callbacks

This commit is contained in:
Yehuda Katz + Carl Lerche 2009-06-15 11:26:47 -07:00
parent 5a8a550a45
commit 64ae5b56ff

@ -307,7 +307,7 @@ def #{method_name}(&blk)
def _normalize_legacy_filter(kind, filter)
if !filter.respond_to?(kind) && filter.respond_to?(:filter)
filter.class_eval(
filter.metaclass.class_eval(
"def #{kind}(context, &block) filter(context, &block) end",
__FILE__, __LINE__ - 1)
elsif filter.respond_to?(:before) && filter.respond_to?(:after) && kind == :around