From 650c5f26ac0f55f69cbfc80a9d0dc08d32be7f22 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Mon, 9 Jan 2012 08:44:05 +0000 Subject: Ensure pagination works even on general search page --- lib/willpaginate_hack.rb | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 lib/willpaginate_hack.rb (limited to 'lib/willpaginate_hack.rb') diff --git a/lib/willpaginate_hack.rb b/lib/willpaginate_hack.rb deleted file mode 100644 index 084329e82..000000000 --- a/lib/willpaginate_hack.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Monkeypatch! Hack for admin pages, when proxied via https on mySociety servers, they -# need a relative URL. -module WillPaginate - class LinkRenderer - def page_link(page, text, attributes = {}) - url = url_for(page) - if url.match(/^\/admin.*(\?.*)/) - url = $1 - end - @template.link_to text, url, attributes - end - end -end - -- cgit v1.2.3