summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-27 16:14:09 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-30 16:58:35 -0400
commitda347f360273805b782602e38785c7dbf012edf2 (patch)
tree62dd2cbb16873036d29c841d3747d17fb19556ac
parent7c20f30f05d06fe2571bceed2b1aa3c5d38e9daa (diff)
downloadgitlab-ce-rs-update-note.tar.gz
Simplify Note#editable?rs-update-note
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 89d81ab1de2..de3b6df88f7 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -366,6 +366,6 @@ class Note < ActiveRecord::Base
end
def editable?
- !read_attribute(:system)
+ !system?
end
end