Codeminer42/cm42-central

View on GitHub
app/controllers/project_boards_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ProjectBoardsController < ApplicationController
  def show
    authorize project

    result = StoryOperations::ReadAll.call(project: project)
    project_board = result.value!

    render json: project_board
  end

  private

  def project
    current_user.projects.friendly.find(params[:id])
  end
end