mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
12 lines
356 B
Ruby
12 lines
356 B
Ruby
class StaticPagesController < ApplicationController
|
|
def roadmap
|
|
@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)
|
|
.where(post_status_id: @post_statuses.pluck(:id))
|
|
end
|
|
end |