summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-03-05 17:32:08 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-03-05 17:32:08 -0500
commiteb3ca328137a92a91a5e2c6fb12ea09cbea7f609 (patch)
tree0b082bfca7f6c0f324fbb13a9897a3aaa225ee56
parent28bee175dbdba8bb0ca04887d6f8d5c4d727a0bd (diff)
downloadgitlab-ce-eb3ca328137a92a91a5e2c6fb12ea09cbea7f609.tar.gz
Remove `Note#noteable_type_name`
This method was added in Dec 2012, its single use was removed two days later, and it's been there ever since.
-rw-r--r--app/models/note.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 1a7b2ba6d42..8e46a0c5c16 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -323,10 +323,6 @@ class Note < ActiveRecord::Base
noteable
end
- def noteable_type_name
- noteable_type.downcase if noteable_type.present?
- 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)