else + ternary => elsif + else
This commit is contained in:
parent
b0a0ac0031
commit
8e149d5ac5
|
@ -33,8 +33,10 @@ module Kaminari
|
|||
c = c.count(column_name)
|
||||
@total_count = if c.is_a?(Hash) || c.is_a?(ActiveSupport::OrderedHash)
|
||||
c.count
|
||||
else
|
||||
c.respond_to?(:count) ? c.count(column_name) : c
|
||||
elsif c.respond_to? :count
|
||||
c.count(column_name)
|
||||
else
|
||||
c
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue