mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-26 02:31:09 +00:00
cleanup: rubocop: fix Layout/IndentFirstArgument in app/models/journal.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19307 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
96981b1daf
commit
3ccbfd9ec1
@ -201,7 +201,8 @@ class Journal < ActiveRecord::Base
|
|||||||
# Adds a journal detail for an attachment that was added or removed
|
# Adds a journal detail for an attachment that was added or removed
|
||||||
def journalize_attachment(attachment, added_or_removed)
|
def journalize_attachment(attachment, added_or_removed)
|
||||||
key = (added_or_removed == :removed ? :old_value : :value)
|
key = (added_or_removed == :removed ? :old_value : :value)
|
||||||
details << JournalDetail.new(
|
details <<
|
||||||
|
JournalDetail.new(
|
||||||
:property => 'attachment',
|
:property => 'attachment',
|
||||||
:prop_key => attachment.id,
|
:prop_key => attachment.id,
|
||||||
key => attachment.filename
|
key => attachment.filename
|
||||||
@ -211,7 +212,8 @@ class Journal < ActiveRecord::Base
|
|||||||
# Adds a journal detail for an issue relation that was added or removed
|
# Adds a journal detail for an issue relation that was added or removed
|
||||||
def journalize_relation(relation, added_or_removed)
|
def journalize_relation(relation, added_or_removed)
|
||||||
key = (added_or_removed == :removed ? :old_value : :value)
|
key = (added_or_removed == :removed ? :old_value : :value)
|
||||||
details << JournalDetail.new(
|
details <<
|
||||||
|
JournalDetail.new(
|
||||||
:property => 'relation',
|
:property => 'relation',
|
||||||
:prop_key => relation.relation_type_for(journalized),
|
:prop_key => relation.relation_type_for(journalized),
|
||||||
key => relation.other_issue(journalized).try(:id)
|
key => relation.other_issue(journalized).try(:id)
|
||||||
@ -279,7 +281,8 @@ class Journal < ActiveRecord::Base
|
|||||||
|
|
||||||
# Adds a journal detail
|
# Adds a journal detail
|
||||||
def add_detail(property, prop_key, old_value, value)
|
def add_detail(property, prop_key, old_value, value)
|
||||||
details << JournalDetail.new(
|
details <<
|
||||||
|
JournalDetail.new(
|
||||||
:property => property,
|
:property => property,
|
||||||
:prop_key => prop_key,
|
:prop_key => prop_key,
|
||||||
:old_value => old_value,
|
:old_value => old_value,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user