Class: IssueRelation::Relations

Inherits:
Array
  • Object
show all
Includes:
Redmine::I18n
Defined in:
app/models/issue_relation.rb

Overview

Class used to represent the relations of an issue

Instance Method Summary collapse

Methods included from Redmine::I18n

#current_language, #day_letter, #day_name, #find_language, #format_date, #format_hours, #format_time, included, #l, #l_hours, #l_hours_short, #l_or_humanize, #languages_options, #ll, #lu, #month_name, #set_language_if_valid, #valid_languages

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Constructor Details

#initialize(issue, *args) ⇒ Relations

Returns a new instance of Relations



23
24
25
26
# File 'app/models/issue_relation.rb', line 23

def initialize(issue, *args)
  @issue = issue
  super(*args)
end

Instance Method Details

#to_s(*args) ⇒ Object



28
29
30
# File 'app/models/issue_relation.rb', line 28

def to_s(*args)
  map {|relation| relation.to_s(@issue)}.join(', ')
end