Files
gitlabhq/app/services/notes/create_service.rb
T
2014-01-16 19:03:42 +02:00

11 lines
189 B
Ruby

module Notes
class CreateService < BaseService
def execute
note = project.notes.new(params[:note])
note.author = current_user
note.save
note
end
end
end