debian-mirror-gitlab/app/services/emails/create_service.rb

8 lines
135 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
module Emails
class CreateService < ::Emails::BaseService
def execute
@user.emails.create(email: @email)
end
end
end