Class: BadgeTypeSerializer
- Inherits:
-
ApplicationSerializer
- Object
- ActiveModel::Serializer
- ApplicationSerializer
- BadgeTypeSerializer
- Defined in:
- app/serializers/badge_type_serializer.rb
Instance Method Summary collapse
-
#sort_order ⇒ Object
change this if/when we allow custom badge types correct for now, though.
Methods inherited from ApplicationSerializer
expire_cache_fragment!, fragment_cache
Methods inherited from ActiveModel::Serializer
Instance Method Details
#sort_order ⇒ Object
change this if/when we allow custom badge types correct for now, though
8 9 10 |
# File 'app/serializers/badge_type_serializer.rb', line 8 def sort_order 10 - object.id end |