From d88fe6d37732666da2786d07c5283644e3167bd7 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Tue, 10 May 2011 23:35:17 +0800 Subject: [PATCH] Only add extensions to direct descendents of ActiveRecord::Base --- lib/kaminari/models/active_record_extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kaminari/models/active_record_extension.rb b/lib/kaminari/models/active_record_extension.rb index 77445fa..0d11f3c 100644 --- a/lib/kaminari/models/active_record_extension.rb +++ b/lib/kaminari/models/active_record_extension.rb @@ -18,7 +18,7 @@ module Kaminari include Kaminari::ActiveRecordRelationMethods include Kaminari::PageScopeMethods end - end + end if kls.superclass == ActiveRecord::Base end end end