summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-08-17 16:25:42 -0500
committerDouwe Maan <douwe@selenight.nl>2016-08-17 16:25:42 -0500
commitc64e977d2e36caf108a1b8dd7348b2846e06b7f0 (patch)
treeb7aed075806db862c1bf13bbd3dc3a7a1c274336
parente88eab6e8beacc25bdb7597ba962ebac635b9eba (diff)
downloadgitlab-ce-c64e977d2e36caf108a1b8dd7348b2846e06b7f0.tar.gz
Fix class method definition
-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 fb0d0ebc396..d01a0c4ce02 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -84,7 +84,7 @@ class Note < ActiveRecord::Base
[:discussion, noteable_type.try(:underscore), noteable_id].join("-")
end
- def self.discussion_id(*args)
+ def discussion_id(*args)
Digest::SHA1.hexdigest(build_discussion_id(*args))
end