aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorThomas Haddad2017-03-02 17:04:09 +0100
committerThomas Haddad2017-03-02 17:04:09 +0100
commit030d07718bde5fb9bbb165e06e7d2269c9217190 (patch)
tree39f8e53c96bbf7e31a3c7b799ef98670237608c8 /app/controllers
parentb373f06c85f3d9fd511ed2df4b38065bb18315e0 (diff)
downloadchouette-core-030d07718bde5fb9bbb165e06e7d2269c9217190.tar.bz2
Refs #2522: use Bselect2 to link a jp to a vj
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/journey_patterns_collections_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/journey_patterns_collections_controller.rb b/app/controllers/journey_patterns_collections_controller.rb
index 23f6c3b70..215a1736c 100644
--- a/app/controllers/journey_patterns_collections_controller.rb
+++ b/app/controllers/journey_patterns_collections_controller.rb
@@ -10,7 +10,7 @@ class JourneyPatternsCollectionsController < ChouetteController
alias_method :route, :parent
def show
- @q = route.journey_patterns.includes(:stop_points)
+ @q = route.journey_patterns.search(params[:q]).result(distinct: true).includes(:stop_points)
@journey_patterns ||= @q.paginate(:page => params[:page]).order(:name)
end