Permalink
Browse files

fix deprecation block arity for ruby 1.8.7

  • Loading branch information...
1 parent 26e8736 commit 64e2d775c4050d3314368a7752d8c4825c8b0e9f @mislav committed Sep 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 64e2d77

Please sign in to comment.