diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-01 18:15:53 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-01 18:15:53 +0300 |
commit | 6dad2bc6e67f47149e8981730cf3f08938794ceb (patch) | |
tree | 732a7c30ceedc11f847f85f48a5caaffe9e39e61 /app/models/concerns | |
parent | f3ea06eb7f8bef748be0882cb0b4fb58deed8eef (diff) |
Fix referenced_mentionables method.
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/mentionable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/mentionable.rb b/app/models/concerns/mentionable.rb index 0d6cd86aade..634a8d0f274 100644 --- a/app/models/concerns/mentionable.rb +++ b/app/models/concerns/mentionable.rb @@ -67,7 +67,7 @@ module Mentionable # We're using this method instead of Array diffing because that requires # both of the object's `hash` values to be the same, which may not be the # case for otherwise identical Commit objects. - refs.reject! { |ref| ref == local_reference } + refs.reject { |ref| ref == local_reference } end # Create a cross-reference Note for each GFM reference to another Mentionable found in +mentionable_text+. |