order-by-committed_on.patch

Order primarily by the committed_on field - Daniel Luz, 2008-06-29 02:50

Download (768 Bytes)

View differences:

app/models/issue.rb (working copy)
28 28
  has_many :journals, :as => :journalized, :dependent => :destroy
29 29
  has_many :attachments, :as => :container, :dependent => :destroy
30 30
  has_many :time_entries, :dependent => :delete_all
31
  has_and_belongs_to_many :changesets, :order => "revision ASC"
31
  has_and_belongs_to_many :changesets, :order => "committed_on ASC, revision ASC"
32 32
  
33 33
  has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
34 34
  has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all