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>2016-08-18 00:25:42 +0300
committerDouwe Maan <douwe@selenight.nl>2016-08-18 00:25:42 +0300
commitc64e977d2e36caf108a1b8dd7348b2846e06b7f0 (patch)
treeb7aed075806db862c1bf13bbd3dc3a7a1c274336 /app/models/note.rb
parente88eab6e8beacc25bdb7597ba962ebac635b9eba (diff)
Fix class method definition
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 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