Kangaru/BaseApp — pull request #24 by zlw (2011-12-14 09:51:21+00:00)
Title: Media object refactoring

## Models in Media module are now embedded in MediaObject

Huge performance boost, but we have no direct access to those models - just through MediaObject.

**All models in Media module must now inherit from Media::Resource class**

## No changes in API

```ruby
media = MediaObject.first
media.type #=> :text
media.resource #=> #
media.content #=> "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dignissim."
```

![all green after refactoring](http://img838.imageshack.us/img838/1473/zrzutekranu20111214o104.png)