aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/link_to_helper.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-15 14:23:09 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-15 14:47:02 +1100
commit7c078a56cdbdc90007ccbd4104d159f272913694 (patch)
tree6d823d8ea6bf9a791cc35a23d90fe7345406f800 /app/helpers/link_to_helper.rb
parentb59116c168c7ca24c36faf73c7848e4537daec47 (diff)
Inline helper
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-xapp/helpers/link_to_helper.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb
index 2c4a30eda..0af4570ab 100755
--- a/app/helpers/link_to_helper.rb
+++ b/app/helpers/link_to_helper.rb
@@ -98,12 +98,8 @@ module LinkToHelper
link_to h(public_body.name), public_body_url(public_body)
end
- def public_body_admin_url(public_body)
- admin_body_show_url(public_body)
- end
-
def public_body_both_links(public_body)
- link_to(h(public_body.name), public_body_url(public_body)) + " (" + link_to("admin", public_body_admin_url(public_body)) + ")"
+ link_to(h(public_body.name), public_body_url(public_body)) + " (" + link_to("admin", admin_body_show_url(public_body)) + ")"
end
# Users