From 6a7ac500842896fb92cbb6f3adaa200c67a3ec4b Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 12 Oct 2016 06:48:12 +0900 Subject: [PATCH] Unused method parameter but keeping the method signature compatible... or can we just remove this?? --- .../lib/kaminari/activerecord/active_record_relation_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb b/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb index 43643d8..9fcc19c 100644 --- a/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb +++ b/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb @@ -9,7 +9,7 @@ module Kaminari super end - def total_count(column_name = :all, options = nil) #:nodoc: + def total_count(column_name = :all, _options = nil) #:nodoc: # #count overrides the #select which could include generated columns referenced in #order, so skip #order here, where it's irrelevant to the result anyway @total_count ||= begin c = except(:offset, :limit, :order)