Make sure note.system is false if created by user

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets
2014-02-20 14:07:42 +02:00
parent 499a118590
commit 0f080a9410
+1
View File
@@ -3,6 +3,7 @@ module Notes
def execute
note = project.notes.new(params[:note])
note.author = current_user
note.system = false
note.save
note
end