Looks like this is what you need:

```erb
<span class="icon icon--<%= content_item.type.dasherize %>"></span>
```