Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix deprecation block arity for ruby 1.8.7

  • Loading branch information...
commit 64e2d775c4050d3314368a7752d8c4825c8b0e9f 1 parent 26e8736
@mislav mislav authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/will_paginate/view_helpers.rb
View
2  lib/will_paginate/view_helpers.rb
@@ -36,7 +36,7 @@ class << self
"set the 'will_paginate.#{key}' key in your i18n locale instead of editing pagination_options" if defined? Rails
}
pagination_options.deprecate_key(:previous_label, :next_label, &label_deprecation)
- pagination_options.deprecate_key(:renderer) { |key| "pagination_options[#{key.inspect}] shouldn't be set globally" }
+ pagination_options.deprecate_key(:renderer) { |key, _| "pagination_options[#{key.inspect}] shouldn't be set globally" }
include WillPaginate::I18n
Please sign in to comment.
Something went wrong with that request. Please try again.