diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-15 11:26:47 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-15 11:26:47 -0700 |
commit | 64ae5b56fff7c51fd436aaf81b8f30488cce3a2d (patch) | |
tree | 9b12489e7e0f7fb894778f3975a1d58f841fbcc3 /activesupport | |
parent | 5a8a550a45c5ca7abc9785ed180d5f46189c9958 (diff) | |
download | rails-64ae5b56fff7c51fd436aaf81b8f30488cce3a2d.tar.gz rails-64ae5b56fff7c51fd436aaf81b8f30488cce3a2d.tar.bz2 rails-64ae5b56fff7c51fd436aaf81b8f30488cce3a2d.zip |
Fix failing tests in new callbacks
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/new_callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/new_callbacks.rb b/activesupport/lib/active_support/new_callbacks.rb index fa22f85d69..bc340fccec 100644 --- a/activesupport/lib/active_support/new_callbacks.rb +++ b/activesupport/lib/active_support/new_callbacks.rb @@ -307,7 +307,7 @@ module ActiveSupport 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 |