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