0f080a9410
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
11 lines
215 B
Ruby
11 lines
215 B
Ruby
module Notes
|
|
class CreateService < BaseService
|
|
def execute
|
|
note = project.notes.new(params[:note])
|
|
note.author = current_user
|
|
note.system = false
|
|
note.save
|
|
note
|
|
end
|
|
end
|
|
end
|