Files
astuto/app/controllers/static_pages_controller.rb

11 lines
306 B
Ruby
Raw Normal View History

2019-08-19 17:41:47 +02:00
class StaticPagesController < ApplicationController
2019-08-26 14:29:56 +02:00
def roadmap
@post_statuses = PostStatus
.find_roadmap
.select(:id, :name, :color)
2019-08-26 14:29:56 +02:00
@posts = Post
.find_with_post_status_in(@post_statuses)
2019-08-26 14:29:56 +02:00
.select(:id, :title, :board_id, :post_status_id, :user_id, :created_at)
2019-08-19 17:41:47 +02:00
end
end