Admin area improved
This commit is contained in:
parent
a769204ff4
commit
cc043f32d8
39 changed files with 434 additions and 334 deletions
|
@ -53,6 +53,7 @@ class Project < ActiveRecord::Base
|
|||
attr_protected :private_flag, :owner_id
|
||||
|
||||
scope :public_only, where(:private_flag => false)
|
||||
scope :without_user, lambda { |user| where("id not in (:ids)", :ids => user.projects.map(&:id) ) }
|
||||
|
||||
def self.active
|
||||
joins(:issues, :notes, :merge_requests).order("issues.created_at, notes.created_at, merge_requests.created_at DESC")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue