From 282b2125292d8f4c721dba89510ee4360c071eb0 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sun, 10 Jan 2016 11:54:04 +0000 Subject: [PATCH] Remove an unused variable closes #771 --- lib/kaminari/helpers/action_view_extension.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kaminari/helpers/action_view_extension.rb b/lib/kaminari/helpers/action_view_extension.rb index ac84d90..eaf0e0a 100644 --- a/lib/kaminari/helpers/action_view_extension.rb +++ b/lib/kaminari/helpers/action_view_extension.rb @@ -14,7 +14,7 @@ module Kaminari # * :param_name - parameter name for page number in the links (:page by default) # * :remote - Ajax? (false by default) # * :ANY_OTHER_VALUES - Any other hash key & values would be directly passed into each tag as :locals value. - def paginate(scope, options = {}, &block) + def paginate(scope, options = {}) options[:total_pages] ||= options[:num_pages] || scope.total_pages paginator = Kaminari::Helpers::Paginator.new(self, options.reverse_merge(:current_page => scope.current_page, :per_page => scope.limit_value, :remote => false))