aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/access_points_helper.rb
blob: c954e6cad0c3d5f63e92af2fc8bba402a0d590dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module AccessPointsHelper


  def access_point_type_label_pairs
    Chouette::AccessPoint
    .access_point_types
    .zip_map { |access_point_type| t("access_types.label.#{access_point_type}") }
  end

  def pair_key(access_link)
    "#{access_link.access_point.id}-#{access_link.stop_area.id}"
  end

end