mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
16 lines
268 B
Ruby
16 lines
268 B
Ruby
# 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
|