Disable issues sort. Recent issues on top. Fixed tests

This commit is contained in:
Dmitriy Zaporozhets 2012-07-02 21:51:48 +03:00
parent e00390b377
commit a2eda66b30
12 changed files with 29 additions and 47 deletions

View file

@ -13,7 +13,7 @@ class Project < ActiveRecord::Base
has_many :users, :through => :users_projects
has_many :events, :dependent => :destroy
has_many :merge_requests, :dependent => :destroy
has_many :issues, :dependent => :destroy, :order => "closed, position"
has_many :issues, :dependent => :destroy, :order => "closed, created_at DESC"
has_many :milestones, :dependent => :destroy
has_many :users_projects, :dependent => :destroy
has_many :notes, :dependent => :destroy