Fix code style
This commit is contained in:
parent
bea0a542e3
commit
9b7e012d37
1 changed files with 9 additions and 6 deletions
|
@ -28,8 +28,9 @@ private
|
||||||
return if general_comments.blank?
|
return if general_comments.blank?
|
||||||
|
|
||||||
context.general_comments_person_comment =
|
context.general_comments_person_comment =
|
||||||
context.person.person_comments.where(origin: :general_comments)
|
context
|
||||||
.lock(true).first_or_initialize
|
.person.person_comments.where(origin: :general_comments).lock(true)
|
||||||
|
.first_or_initialize
|
||||||
|
|
||||||
context.general_comments_person_comment.text = general_comments
|
context.general_comments_person_comment.text = general_comments
|
||||||
|
|
||||||
|
@ -40,8 +41,9 @@ private
|
||||||
return if first_contact_date.blank?
|
return if first_contact_date.blank?
|
||||||
|
|
||||||
context.first_contact_date_person_comment =
|
context.first_contact_date_person_comment =
|
||||||
context.person.person_comments.where(origin: :first_contact_date)
|
context
|
||||||
.lock(true).first_or_initialize
|
.person.person_comments.where(origin: :first_contact_date).lock(true)
|
||||||
|
.first_or_initialize
|
||||||
|
|
||||||
context.first_contact_date_person_comment.text = first_contact_date
|
context.first_contact_date_person_comment.text = first_contact_date
|
||||||
|
|
||||||
|
@ -52,8 +54,9 @@ private
|
||||||
return if latest_contact_date.blank?
|
return if latest_contact_date.blank?
|
||||||
|
|
||||||
context.latest_contact_date_person_comment =
|
context.latest_contact_date_person_comment =
|
||||||
context.person.person_comments.where(origin: :latest_contact_date)
|
context
|
||||||
.lock(true).first_or_initialize
|
.person.person_comments.where(origin: :latest_contact_date).lock(true)
|
||||||
|
.first_or_initialize
|
||||||
|
|
||||||
context.latest_contact_date_person_comment.text = latest_contact_date
|
context.latest_contact_date_person_comment.text = latest_contact_date
|
||||||
|
|
||||||
|
|
Reference in a new issue