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
app/serializers
|
@ -2,8 +2,5 @@ require_dependency 'age_words'
|
||||||
|
|
||||||
# The most basic attributes of a topic that we need to create a link for it.
|
# The most basic attributes of a topic that we need to create a link for it.
|
||||||
class BasicTopicSerializer < ApplicationSerializer
|
class BasicTopicSerializer < ApplicationSerializer
|
||||||
include ActionView::Helpers
|
|
||||||
|
|
||||||
attributes :id, :fancy_title, :slug
|
attributes :id, :fancy_title, :slug
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require_dependency 'age_words'
|
require_dependency 'age_words'
|
||||||
|
|
||||||
class ListableTopicSerializer < BasicTopicSerializer
|
class ListableTopicSerializer < BasicTopicSerializer
|
||||||
include ActionView::Helpers
|
|
||||||
|
|
||||||
attributes :reply_count,
|
attributes :reply_count,
|
||||||
:posts_count,
|
:posts_count,
|
||||||
|
|
Reference in a new issue