|
|
@ -30,7 +30,7 @@ class BoardsController < ApplicationController
|
|
|
|
def index
|
|
|
|
def index
|
|
|
|
@boards = @project.boards.includes(:last_message => :author).all
|
|
|
|
@boards = @project.boards.includes(:last_message => :author).all
|
|
|
|
if @boards.size == 1
|
|
|
|
if @boards.size == 1
|
|
|
|
@board = @boards.first
|
|
|
|
@board = @boards.first
|
|
|
|
show and return
|
|
|
|
show and return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if @project.project_type == 1
|
|
|
|
if @project.project_type == 1
|
|
|
|