Class: BadgeTypeSerializer

Inherits:
ApplicationSerializer show all
Defined in:
app/serializers/badge_type_serializer.rb

Instance Method Summary collapse

Methods inherited from ApplicationSerializer

expire_cache_fragment!, fragment_cache

Methods inherited from ActiveModel::Serializer

#include!

Instance Method Details

#sort_orderObject

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