Skip to content

Commit

Permalink
fix deprecation block arity for ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 17, 2011
1 parent 26e8736 commit 64e2d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/will_paginate/view_helpers.rb
Expand Up @@ -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

Expand Down

0 comments on commit 64e2d77

Please sign in to comment.