mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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 New Issue
Block a user