Unused method parameter

but keeping the method signature compatible... or can we just remove this??
This commit is contained in:
Akira Matsuda 2016-10-12 06:48:12 +09:00
parent 5397801570
commit 6a7ac50084
1 changed files with 1 additions and 1 deletions

View File

@ -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)