Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-08-30 11:43:10 +0300
committerDouwe Maan <douwe@selenight.nl>2017-08-30 11:43:10 +0300
commita540f55c6e8ff64f7284ec4194f4c16ca711c685 (patch)
tree6f05a175db0b905b9d915d2831f08b2e68ca1369 /app/models/note.rb
parentb181d3124e4aefca59fb8fe64400eab8d9c73ad8 (diff)
Fix specs
Diffstat (limited to 'app/models/note.rb')
-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 d807d5ad618..1073c115630 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -300,7 +300,7 @@ class Note < ActiveRecord::Base
end
def expire_etag_cache
- return unless noteable.discussions_rendered_on_frontend?
+ return unless noteable&.discussions_rendered_on_frontend?
key = Gitlab::Routing.url_helpers.project_noteable_notes_path(
project,