默认进入第一讨论区..
This commit is contained in:
parent
f14f73414e
commit
c74c7c44d1
|
@ -29,6 +29,7 @@ class BoardsController < ApplicationController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@boards = @project.boards.includes(:last_message => :author).all
|
@boards = @project.boards.includes(:last_message => :author).all
|
||||||
|
@boards = [] << @boards[0]
|
||||||
if @boards.size == 1
|
if @boards.size == 1
|
||||||
@board = @boards.first
|
@board = @boards.first
|
||||||
show and return
|
show and return
|
||||||
|
|
Loading…
Reference in New Issue