josevalim/active_model_serializers — pull request #52 by twinturbo (2012-04-26 13:46:21+00:00)
Title: Use ActiveSupport::Notifications

My idea is that we can use notifications to get a look into how the serializers are performing.

I use this for event names: `name.class.serializer`. I wasn't sure what the naming would be.

`serializable_hash` and `include!` are instrumented. With Rails 4 we can use the new notifications (classes that respond to started and ended) to generate a serialization tree.