gitlab-org--gitlab-foss/app/services/emails/create_service.rb
2017-06-23 11:41:42 +02:00

7 lines
135 B
Ruby

module Emails
class CreateService < ::Emails::BaseService
def execute
@user.emails.create(email: @email)
end
end
end