Hello @Janno_Liivak,
As far as I know, TopicViewSerializer does not include a custom_fields field by default. With your call to add_to_serializer you could access directly to a field called bumped_at_with_button. However, If you want to access to that field through a custom_fields field, then I think you should change your code to something like:
add_to_serializer(:topic_view, :custom_fields, false) {
object.topic.custom_fields.slice(:bumped_at_with_button)
}