Fix referenced_mentionables method.

This commit is contained in:
Douwe Maan 2015-12-01 16:15:53 +01:00
parent f3ea06eb7f
commit 6dad2bc6e6
1 changed files with 1 additions and 1 deletions

View File

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