diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb index f1d2ea7bb1c301dcd3a9fe8a69dc962d2ee30429..8512c659b007800d5fca521c23b009e01caa72c3 100644 --- a/activesupport/lib/active_support/new_callbacks.rb +++ b/activesupport/lib/active_support/new_callbacks.rb @@ -326,6 +326,8 @@ def #{method_name}(&blk) def #{method_name}(&blk) if #{method_name}_object.respond_to?(:#{kind}) #{method_name}_object.#{kind}(self, &blk) + elsif #{method_name}_object.respond_to?(:filter) + #{method_name}_object.send("filter", self, &blk) else #{method_name}_object.send("#{kind}_#{name}", self, &blk) end