rails-api/active_model_serializers — pull request #246 by beerlington (2013-03-20 02:27:53+00:00)
Title: Refactor and consolidate serializer option setup

I've consolidated the options and logic for building a serializer into a centralized method. I'm not super familiar with the Rails internals for rendering and responding, so there might be a better approach, but this at least cleans it up a bit and should make a future refactor easier.