aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-09-16 02:04:06 +0100
committerFrancis Irving <francis@mysociety.org>2010-09-16 02:04:06 +0100
commiteb14e07eaee3f30b3bbadd06b9e99c0e11ba88bb (patch)
tree7663a320f3489901008bbcc151e0cbd9ad97cb4b /app/helpers/link_to_helper.rb
parenta690d47e205b30f641e89f6a7f7c613a02c1b6af (diff)
Serve CSS from secure URL for admin
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rw-r--r--app/helpers/link_to_helper.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index aa63ef65d..2ba4649ba 100644
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -179,12 +179,6 @@ module LinkToHelper
end
- # Where stylesheets used by admin page sit under
- def admin_public_url(relative_path)
- admin_url_prefix = MySociety::Config.get("ADMIN_PUBLIC_URL", "/")
- return admin_url_prefix + relative_path.sub(/^\//, "") # stylesheet relative paths start with /
- end
-
def main_url(relative_path)
url_prefix = "http://" + MySociety::Config.get("DOMAIN", '127.0.0.1:3000')
return url_prefix + relative_path