hide index fields from api; closes #1739

This commit is contained in:
Toks
2013-06-23 12:12:30 -04:00
parent daebcf19f0
commit 395f3d1342
7 changed files with 43 additions and 12 deletions

View File

@@ -96,4 +96,8 @@ class ForumTopic < ActiveRecord::Base
def presenter(forum_posts)
@presenter ||= ForumTopicPresenter.new(self, forum_posts)
end
def hidden_attributes
super + [:text_index]
end
end