wasafiri/blocmetrics — pull request #5 by wasafiri (2014-07-03 22:52:15+00:00)
Title: Use ActiveModel::Serializer to serialize json; refactor spec for less code smell

ActiveModel::Serializer allows us to create json arrays in a more DRY fashion. Also lets us override certain json attributes, like :created_at.

Rewrite spec to be more DRY, readable, and idiomatic.