amatsuda/kaminari — pull request #627 by mjrk (2014-12-03 21:51:37+00:00)
Title: adds link_options for custom link attributes, extends partials, adds tests

Here comes an updated pull request to https://github.com/amatsuda/kaminari/pull/417. It is not API breaking and adds view tests (for each, slim, haml and erb). Furthermore, it adds a configuration option.

To enable `remote=true` gobally, you can can now:

Kaminari.configure do |config|
config.link_options = {remote: true}
end

and then you may want to disable it locally for `wiselinks`

<%= paginate @users, link_options: {remote: false, data: {push: true} %>

or the other way around.

IMHO it would be nice to merge this before 1.0.0 final. Currently, to use kaminari with wiselinks you have to modify each template, if you have kaminari_themes its a real bunch of templates etc.

Let me know if you like the implementation and if I can improve anything to possibly speed up the process.