diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-07 09:38:16 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-07 09:38:16 +0100 |
commit | be1ae2d660ad98cf6a44cefa3148f9c48b66806f (patch) | |
tree | 92b212cdcba2f4f5e4f321c9ae77ee577279615d /app/models | |
parent | 49d7a2934710f65282f3a5d2f8f5ab0f73fda49e (diff) | |
parent | 84dab62c18c98802cc8dcb88149d144b6bf20535 (diff) | |
download | gitlab-ce-be1ae2d660ad98cf6a44cefa3148f9c48b66806f.tar.gz |
Merge branch 'rs-note-delegates-mentionable'
# Conflicts:
# app/models/note.rb
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/note.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 7662f7b5c17..3b20d5d22b6 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -39,6 +39,7 @@ class Note < ActiveRecord::Base has_many :todos, dependent: :destroy + delegate :gfm_reference, :local_reference, to: :noteable delegate :name, to: :project, prefix: true delegate :name, :email, to: :author, prefix: true @@ -313,16 +314,6 @@ class Note < ActiveRecord::Base nil end - # Mentionable override. - def gfm_reference(from_project = nil) - noteable.gfm_reference(from_project) - end - - # Mentionable override. - def local_reference - noteable - end - # FIXME: Hack for polymorphic associations with STI # For more information visit http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#label-Polymorphic+Associations def noteable_type=(noteable_type) |