aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/lines_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/lines_controller.rb')
-rw-r--r--app/controllers/lines_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb
index 2ee4d8729..a5be8ca44 100644
--- a/app/controllers/lines_controller.rb
+++ b/app/controllers/lines_controller.rb
@@ -19,4 +19,12 @@ class LinesController < ChouetteController
%w(asc desc).include?(params[:direction]) ? params[:direction] : "asc"
end
+ def resource_url(line = nil)
+ referential_line_path(referential, line || resource)
+ end
+
+ def collection_url
+ referential_lines_path(referential)
+ end
+
end