From c64e977d2e36caf108a1b8dd7348b2846e06b7f0 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 17 Aug 2016 16:25:42 -0500 Subject: Fix class method definition --- app/models/note.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1