aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-04-30 06:28:16 -0700
committercedricnjanga2018-04-30 06:28:16 -0700
commitf16f8ebf092edf45f063835d83153498ba13e212 (patch)
tree2571ccdd0d5a91383f1ba4f764be18c93faf81b5
parent6779a070b8d5d6d738539f84e4405a86337f7dfb (diff)
downloadchouette-core-f16f8ebf092edf45f063835d83153498ba13e212.tar.bz2
Refs #6860 Change StopPoint show link to stop_area_referential_stop_area_path
-rw-r--r--app/decorators/stop_point_decorator.rb4
-rw-r--r--app/views/routes/show.html.slim2
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( \