app/models/note.rb
# override to return commits, which are not active record
override to return commits, which are not active record
override to return commits which are not active record
def noteable
    if for_commit?
      project.commit(noteable_id)
    else
      super
    end
  rescue
    nil
  end
def noteable if for_commit? project . commit ( noteable_id ) else super end rescue nil end
override to return commits, which are not active record
override to return commits which are not active record
# Temp fix to prevent app crash # if note commit id doesnt exist