mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
we should not be mixing this in to our serializers
1. it gives the class broken methods (like cache in production) 2. it conflicts with am serializers
This commit is contained in:
parent
f3f751ddd2
commit
381e280228
2 changed files with 0 additions and 4 deletions
|
@ -2,8 +2,5 @@ require_dependency 'age_words'
|
|||
|
||||
# The most basic attributes of a topic that we need to create a link for it.
|
||||
class BasicTopicSerializer < ApplicationSerializer
|
||||
include ActionView::Helpers
|
||||
|
||||
attributes :id, :fancy_title, :slug
|
||||
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
require_dependency 'age_words'
|
||||
|
||||
class ListableTopicSerializer < BasicTopicSerializer
|
||||
include ActionView::Helpers
|
||||
|
||||
attributes :reply_count,
|
||||
:posts_count,
|
||||
|
|
Loading…
Reference in a new issue