summaryrefslogtreecommitdiff
path: root/app/models/concerns/mentionable.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-30 23:16:19 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-11 00:01:01 -0400
commit48e6fb532a6655b98319403c5e8699f7daf0305e (patch)
tree9137cd844f66842044bd72705268b44d84d44b6c /app/models/concerns/mentionable.rb
parent0e89ff0fb05973bb3ff6930906d52f10517efa62 (diff)
downloadgitlab-ce-48e6fb532a6655b98319403c5e8699f7daf0305e.tar.gz
Add a SystemNoteService class
There's a lot of code in the Note model that only deals with creating system notes, so we're going to split that into its own class.
Diffstat (limited to 'app/models/concerns/mentionable.rb')
-rw-r--r--app/models/concerns/mentionable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/mentionable.rb b/app/models/concerns/mentionable.rb
index 3ef3e8b67d8..a5957391bb7 100644
--- a/app/models/concerns/mentionable.rb
+++ b/app/models/concerns/mentionable.rb
@@ -39,7 +39,7 @@ module Mentionable
# Determine whether or not a cross-reference Note has already been created between this Mentionable and
# the specified target.
def has_mentioned?(target)
- Note.cross_reference_exists?(target, local_reference)
+ SystemNoteService.cross_reference_exists?(target, local_reference)
end
def mentioned_users(current_user = nil, p = project)