From 7f3a3694c25c3d8c10c687195da18474ce653d36 Mon Sep 17 00:00:00 2001 From: Tom Lea Date: Mon, 18 Aug 2008 17:50:35 +0100 Subject: [PATCH] Fixed incorrect signiture for AR::NamedScope::Scope#respond_to?. --- activerecord/lib/active_record/named_scope.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb index 0902018..c8c2414 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -140,8 +140,8 @@ module ActiveRecord @found ? @found.empty? : count.zero? end - def respond_to?(method) - super || @proxy_scope.respond_to?(method) + def respond_to?(method, include_priv = false) + super || @proxy_scope.respond_to?(method, include_priv) end def any? -- 1.5.2.4