Skip to content
Snippets Groups Projects
Unverified Commit 4ab728bf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix random Argument error when update note


In some strange cases Ruby thinks `system` is not AR field but
Kernel.system call and raises exception during save. It should prevent
this random wierd behaviour

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 19865b7c
No related branches found
No related tags found
1 merge request!8686add "Uplaod" and "Replace" functionality
Loading
Loading
@@ -502,6 +502,6 @@ class Note < ActiveRecord::Base
end
 
def editable?
!system
!read_attribute(:system)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment