From cd79046071937aba2393336720ff5f3df273175f Mon Sep 17 00:00:00 2001 From: riggraz Date: Mon, 26 Aug 2019 18:19:47 +0200 Subject: [PATCH] Roadmap now shows requested post statuses in order --- app/controllers/static_pages_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 45e5c132..730f3009 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -1,6 +1,9 @@ class StaticPagesController < ApplicationController def roadmap - @post_statuses = PostStatus.select(:id, :name, :color) + @post_statuses = PostStatus + .select(:id, :name, :color) + .where(show_in_roadmap: true) + .order(order: :asc) @posts = Post .select(:id, :title, :board_id, :post_status_id, :user_id, :created_at)