diff options
-rw-r--r-- | activesupport/lib/active_support/new_callbacks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb index f1d2ea7bb1..8512c659b0 100644 --- a/activesupport/lib/active_support/new_callbacks.rb +++ b/activesupport/lib/active_support/new_callbacks.rb @@ -326,6 +326,8 @@ module ActiveSupport 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 |