blob: 59a66fde47abe81f56260f56dab8fa51af289c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreateSpamLogService < BaseService
def initialize(project, user, params)
super(project, user, params)
end
def execute
spam_params = params.merge({ user_id: @current_user.id,
project_id: @project.id } )
spam_log = SpamLog.new(spam_params)
spam_log.save
spam_log
end
end
|