Handy little class for attaching arbitrary media files (images, audio, video, etc.) to events in a timeline application. It does a couple of nifty things for supporting the varying media types:
The before_post_process
method ensures we attempt to generate thumbnails only for images.
The named scopes along with the set_item_type
callback gives us a way to pull out media items of a certain type, without having to go down the often more-trouble-than-it's-worth STI path.