issue_status_in_search.diff

Wolfgang Schnerring, 2009-07-31 09:10

Download (772 Bytes)

View differences:

app/models/issue.rb (working copy)
39 39
                     :include => [:project, :journals],
40 40
                     # sort by id so that limited eager loading doesn't break with postgresql
41 41
                     :order_column => "#{table_name}.id"
42
  acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id}: #{o.subject}"},
42
  acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"},
43 43
                :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
44 44
                :type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
45 45