Class: IssueRelation::Relations
- Includes:
- Redmine::I18n
- Defined in:
- app/models/issue_relation.rb
Overview
Class used to represent the relations of an issue
Instance Method Summary collapse
-
#initialize(issue, *args) ⇒ Relations
constructor
A new instance of Relations.
- #to_s(*args) ⇒ Object
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 Redmine::StringArrayDiff::Diffable
#diff, #patch, #replacenextlarger, #reverse_hash
Constructor Details
#initialize(issue, *args) ⇒ Relations
Returns a new instance of Relations.
25 26 27 28 |
# File 'app/models/issue_relation.rb', line 25 def initialize(issue, *args) @issue = issue super(*args) end |
Instance Method Details
#to_s(*args) ⇒ Object
30 31 32 |
# File 'app/models/issue_relation.rb', line 30 def to_s(*args) map {|relation| relation.to_s(@issue)}.join(', ') end |