summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 18:58:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 18:58:05 +0000
commit3ccbfd9ec1cac0394e4e1976bbc64e0150ec0915 (patch)
tree7dc3aa97cf3e382e04006ead39623b4fb6863662 /app/models/journal.rb
parent96981b1daf23f8df3027ae9e46ab40c79a30e70a (diff)
downloadredmine-3ccbfd9ec1cac0394e4e1976bbc64e0150ec0915.tar.gz
redmine-3ccbfd9ec1cac0394e4e1976bbc64e0150ec0915.zip
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
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r--app/models/journal.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index f2283cfc3..c08768d3f 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -201,7 +201,8 @@ class Journal < ActiveRecord::Base
# 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
@@ -211,7 +212,8 @@ class Journal < ActiveRecord::Base
# 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)
@@ -279,7 +281,8 @@ class Journal < ActiveRecord::Base
# 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,