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

8 lines
168 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
module Emails
class CreateService < ::Emails::BaseService
2018-03-17 18:26:18 +05:30
def execute(extra_params = {})
@user.emails.create(@params.merge(extra_params))
2017-09-10 17:25:29 +05:30
end
end
end