Issues, MR, Wall can be enabled/disabled per project

This commit is contained in:
Dmitriy Zaporozhets 2012-02-06 19:40:32 +02:00
parent da3e34c0fd
commit 6c416aaac8
9 changed files with 116 additions and 26 deletions

View file

@ -85,6 +85,8 @@ class ProjectsController < ApplicationController
#
def wall
return render_404 unless @project.wall_enabled
@note = Note.new
@notes = @project.common_notes.order("created_at DESC")
@notes = @notes.fresh.limit(20)