diff options
author | Seb Bacon <seb@mysociety.org> | 2012-01-09 09:42:49 +0000 |
---|---|---|
committer | Seb Bacon <seb@mysociety.org> | 2012-01-09 09:42:49 +0000 |
commit | 0015ed840ab01905cb3b25f7595bae6136b25c77 (patch) | |
tree | d26d2f4997af9c6a43122114e336a23f593dbf77 /lib/willpaginate_hack.rb | |
parent | b2667d15a5685dc01055f60f5a5888b45c5de062 (diff) | |
parent | 848483381694e67999e446d3784b0c32dfdc3f8d (diff) |
Merge branch 'release/0.5' into wdtk
Diffstat (limited to 'lib/willpaginate_hack.rb')
-rw-r--r-- | lib/willpaginate_hack.rb | 14 |
1 files changed, 0 insertions, 14 deletions
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 - |