aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/connection_links_helper.rb
diff options
context:
space:
mode:
authorRobert2017-04-21 17:37:14 +0200
committerRobert2017-04-24 09:03:11 +0200
commit365e927cc18b46af00e3c2f0754aabe3b77e890f (patch)
treededaea93d79c077538fab8ffb10e9e39d35ce56f /app/helpers/connection_links_helper.rb
parentb5d3dc6e1f0120a999af4be3693f3fdc95a727a4 (diff)
downloadchouette-core-365e927cc18b46af00e3c2f0754aabe3b77e890f.tar.bz2
all deprecation wrnings removed from specs, some minor view refactors (:xxx => ... -> xxx: ...); Refs: #??? [amend me]
Diffstat (limited to 'app/helpers/connection_links_helper.rb')
-rw-r--r--app/helpers/connection_links_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/connection_links_helper.rb b/app/helpers/connection_links_helper.rb
new file mode 100644
index 000000000..d9c201028
--- /dev/null
+++ b/app/helpers/connection_links_helper.rb
@@ -0,0 +1,8 @@
+module ConnectionLinksHelper
+
+ def connection_link_type_label_pairs
+ Chouette::ConnectionLink
+ .connection_link_types
+ .zip_map { |type| t("connection_link_types.label.#{type}") }
+ end
+end