diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-09-27 16:14:09 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-30 16:58:35 -0400 |
commit | da347f360273805b782602e38785c7dbf012edf2 (patch) | |
tree | 62dd2cbb16873036d29c841d3747d17fb19556ac | |
parent | 7c20f30f05d06fe2571bceed2b1aa3c5d38e9daa (diff) | |
download | gitlab-ce-da347f360273805b782602e38785c7dbf012edf2.tar.gz |
Simplify Note#editable?rs-update-note
-rw-r--r-- | app/models/note.rb | 2 |
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 |