默认进入第一讨论区..

This commit is contained in:
yanxd 2013-11-28 18:31:09 +08:00
parent f14f73414e
commit c74c7c44d1
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class BoardsController < ApplicationController
def index
@boards = @project.boards.includes(:last_message => :author).all
@boards = [] << @boards[0]
if @boards.size == 1
@board = @boards.first
show and return