Make a couple more tests pass.
A large number of the remaining failing tests have to do with the semantics of filters that are Objects. The right solution is probably to just implement the filter/before/after semantics in NewCallbacks directly (the current semantics are based on the old AS::Callbacks specs)
This commit is contained in:
parent
e22a3d893e
commit
e0ed4b7aa4
@ -36,6 +36,17 @@ def #{filter}_filter(*names, &blk)
|
|||||||
process_action_callback(:#{filter}, name, options)
|
process_action_callback(:#{filter}, name, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def skip_#{filter}_filter(*names, &blk)
|
||||||
|
options = names.last.is_a?(Hash) ? names.pop : {}
|
||||||
|
_normalize_callback_options(options)
|
||||||
|
names.push(blk) if block_given?
|
||||||
|
names.each do |name|
|
||||||
|
skip_process_action_callback(:#{filter}, name, options)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
alias_method :append_#{filter}_filter, :#{filter}_filter
|
||||||
RUBY_EVAL
|
RUBY_EVAL
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user