Could this be more clearly expressed this way?

    @date_properties ||= mappings["edition"]["properties"].select { |p,h| h["type"] == "date" }.keys