Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SamSaffron committed Mar 20, 2013
1 parent f3f751d commit 381e280
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions app/serializers/basic_topic_serializer.rb
Expand Up @@ -2,8 +2,5 @@

# 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 change: 0 additions & 1 deletion app/serializers/listable_topic_serializer.rb
@@ -1,7 +1,6 @@
require_dependency 'age_words'

class ListableTopicSerializer < BasicTopicSerializer
include ActionView::Helpers

attributes :reply_count,
:posts_count,
Expand Down

0 comments on commit 381e280

Please sign in to comment.