@@ -19,12 +19,12 class IssueRelation < ActiveRecord::Base | |||||
19 | # Class used to represent the relations of an issue |
|
19 | # Class used to represent the relations of an issue | |
20 | class Relations < Array |
|
20 | class Relations < Array | |
21 | include Redmine::I18n |
|
21 | include Redmine::I18n | |
22 |
|
22 | |||
23 | def initialize(issue, *args) |
|
23 | def initialize(issue, *args) | |
24 | @issue = issue |
|
24 | @issue = issue | |
25 | super(*args) |
|
25 | super(*args) | |
26 | end |
|
26 | end | |
27 |
|
27 | |||
28 | def to_s(*args) |
|
28 | def to_s(*args) | |
29 | map {|relation| "#{l(relation.label_for(@issue))} ##{relation.other_issue(@issue).id}"}.join(', ') |
|
29 | map {|relation| "#{l(relation.label_for(@issue))} ##{relation.other_issue(@issue).id}"}.join(', ') | |
30 | end |
|
30 | end |
General Comments 0
You need to be logged in to leave comments.
Login now