aboutsummaryrefslogtreecommitdiffstats
path: root/lib/willpaginate_hack.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-09 21:34:15 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-09 21:34:15 +0000
commit4fe1a1d68234197d5303ad7323dd91636b84db14 (patch)
treee66779ac77cd3ab8d9b39f6957e7e06fa2a4ae4e /lib/willpaginate_hack.rb
parentbb87d842ec3559483a2c0132dbc0c216e0cb597e (diff)
parent19a0a2fedf68a256084d4dcfd70b9cb9377b9a09 (diff)
Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5
Diffstat (limited to 'lib/willpaginate_hack.rb')
-rw-r--r--lib/willpaginate_hack.rb14
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
-