diff options
| author | Luc Donnet | 2018-05-23 09:21:51 +0200 |
|---|---|---|
| committer | GitHub | 2018-05-23 09:21:51 +0200 |
| commit | 155b6d4638e1b36b869b7a18b08e47121b585a7d (patch) | |
| tree | 87968547b1f3b611832e1bd83b2aae9b90902a28 | |
| parent | dd33794e295d5978abb7ccbbf5ded6a40ab42a2f (diff) | |
| parent | f16f8ebf092edf45f063835d83153498ba13e212 (diff) | |
| download | chouette-core-155b6d4638e1b36b869b7a18b08e47121b585a7d.tar.bz2 | |
Merge pull request #544 from af83/6860-stop-point-show-link
Refs #6860 Change StopPoint show link to stop_area_referential_stop_a…
| -rw-r--r-- | app/decorators/stop_point_decorator.rb | 4 | ||||
| -rw-r--r-- | app/views/routes/show.html.slim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/decorators/stop_point_decorator.rb b/app/decorators/stop_point_decorator.rb index 4ff5bce9c..575938fa2 100644 --- a/app/decorators/stop_point_decorator.rb +++ b/app/decorators/stop_point_decorator.rb @@ -4,8 +4,8 @@ class StopPointDecorator < AF83::Decorator with_instance_decorator do |instance_decorator| instance_decorator.show_action_link do |l| l.href do - h.referential_stop_area_path( - object.referential, + h.stop_area_referential_stop_area_path( + object.stop_area.stop_area_referential, object.stop_area ) end diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim index aea824a89..2218bd85f 100644 --- a/app/views/routes/show.html.slim +++ b/app/views/routes/show.html.slim @@ -30,7 +30,7 @@ key: :name, \ attribute: Proc.new { |s| content_tag :span, s.stop_area&.name, class: s.stop_area&.area_type }, \ link_to: lambda do |stop_point| \ - referential_stop_area_path(@referential, stop_point.stop_area) \ + stop_area_referential_stop_area_path(stop_point.stop_area.referential, stop_point.stop_area) \ end \ ), \ TableBuilderHelper::Column.new( \ |
