2011-10-20 66 views
0

我做了一個自定義的LinkRenderer。will_paginate不考慮WillPaginate :: ViewHelpers.pagination_options [:renderer]

<%= will_paginate @results, :renderer => PaginationRenderer %> 

但將這個在初始化不起作用:用於就像當它工作正常

WillPaginate::ViewHelpers.pagination_options[:renderer] = 'PaginationRenderer' 

甚至

WillPaginate::ViewHelpers.pagination_options[:renderer] = PaginationRenderer 

如果我打印WillPaginate::ViewHelpers.pagination_options[:renderer]當軌已經啓動,它回答我正確的PaginationRenderer

看來它不會在渲染時使用它。我錯過了什麼嗎?

回答