app/presenters: remove unused forum_post/note/post_version presenters.

This commit is contained in:
evazion
2017-02-06 02:23:51 -06:00
parent 5c16e9ce48
commit ec653dce71
6 changed files with 0 additions and 49 deletions

View File

@@ -158,10 +158,6 @@ class ForumTopic < ActiveRecord::Base
(response_count / Danbooru.config.posts_per_page.to_f).ceil
end
def presenter(forum_posts)
@presenter ||= ForumTopicPresenter.new(self, forum_posts)
end
def as_json(options = {})
if CurrentUser.user.level < min_level
options[:only] = [:id]

View File

@@ -89,10 +89,6 @@ class Note < ActiveRecord::Base
extend SearchMethods
include ApiMethods
def presenter
@presenter ||= NotePresenter.new(self)
end
def initialize_creator
self.creator_id = CurrentUser.id
end

View File

@@ -56,10 +56,6 @@ class PostVersion < ActiveRecord::Base
@tag_array ||= tags.scan(/\S+/)
end
def presenter
PostVersionPresenter.new(self)
end
def reload
@tag_array = nil
super