fix submitter name
This commit is contained in:
committed by
Oleksandr Turchyn
parent
2fcb08d27d
commit
c6b004f107
@@ -86,11 +86,11 @@ class Submitter < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def first_name
|
def first_name
|
||||||
name.split(/\s+/, 2).first
|
name&.split(/\s+/, 2)&.first
|
||||||
end
|
end
|
||||||
|
|
||||||
def last_name
|
def last_name
|
||||||
name.split(/\s+/, 2).last
|
name&.split(/\s+/, 2)&.last
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_event_at
|
def status_event_at
|
||||||
|
|||||||
Reference in New Issue
Block a user