2012-07-31 05:32:49 +00:00
|
|
|
module Notes
|
2014-01-16 17:03:42 +00:00
|
|
|
class CreateService < BaseService
|
2012-07-31 05:32:49 +00:00
|
|
|
def execute
|
|
|
|
note = project.notes.new(params[:note])
|
|
|
|
note.author = current_user
|
2014-02-20 12:07:42 +00:00
|
|
|
note.system = false
|
2012-07-31 05:32:49 +00:00
|
|
|
note.save
|
|
|
|
note
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|