diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-01-20 09:51:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-01-20 09:51:48 +0200 |
commit | 3d7b35a37d30365088947de0cf85cc7d4af79162 (patch) | |
tree | 6824f72f50b36a54dc9dfe4e1ebb4c19d67a6971 /app/models/note.rb | |
parent | 8c46123f9902cfb173e0bdc80c3e111eba1b1841 (diff) | |
download | gitlab-ce-3d7b35a37d30365088947de0cf85cc7d4af79162.tar.gz |
per line comment fix
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 48cc2d80f8a..689b620d23f 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -52,6 +52,10 @@ class Note < ActiveRecord::Base else noteable end + # Temp fix to prevent app crash + # if note commit id doesnt exist + rescue + nil end def line_file_id |