# Adds a journal detail for an attachment that was added or removed
def journalize_attachment(attachment, added_or_removed)
key = (added_or_removed == :removed ? :old_value : :value)
- details << JournalDetail.new(
+ details <<
+ JournalDetail.new(
:property => 'attachment',
:prop_key => attachment.id,
key => attachment.filename
# Adds a journal detail for an issue relation that was added or removed
def journalize_relation(relation, added_or_removed)
key = (added_or_removed == :removed ? :old_value : :value)
- details << JournalDetail.new(
+ details <<
+ JournalDetail.new(
:property => 'relation',
:prop_key => relation.relation_type_for(journalized),
key => relation.other_issue(journalized).try(:id)
# Adds a journal detail
def add_detail(property, prop_key, old_value, value)
- details << JournalDetail.new(
+ details <<
+ JournalDetail.new(
:property => property,
:prop_key => prop_key,
:old_value => old_value,