mirror of https://github.com/docusealco/docuseal
parent
49cea59b94
commit
bbe3942056
@ -0,0 +1,15 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Submitters
|
||||||
|
module ValidateSending
|
||||||
|
InvalidEmail = Class.new(StandardError)
|
||||||
|
|
||||||
|
module_function
|
||||||
|
|
||||||
|
def call(submitter, _mail)
|
||||||
|
raise InvalidEmail unless submitter.email.to_s.include?('@')
|
||||||
|
|
||||||
|
true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Reference in new issue