mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
add first name var
This commit is contained in:
1 parent
a04c04141c
commit
b16322dd5b
2 files changed
+12
No files matched your search
@@ -85,6 +85,14 @@ class Submitter < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def first_name
|
||||
name.split(/\s+/, 2).first
|
||||
end
|
||||
|
||||
def last_name
|
||||
name.split(/\s+/, 2).last
|
||||
end
|
||||
|
||||
def status_event_at
|
||||
declined_at || completed_at || opened_at || sent_at || created_at
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user