per line comment fix

This commit is contained in:
Dmitriy Zaporozhets 2012-01-20 09:51:48 +02:00
parent 8c46123f99
commit 3d7b35a37d
4 changed files with 34 additions and 11 deletions

View file

@ -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