rails-api/active_model_serializers — pull request #177 by nragaz (2012-12-21 22:39:29+00:00)
Title: use _ids method instead of pluck to embed ids

Sorry to do this but there was a problem with PR #176. If you use `pluck` to select the `id` column on a `has_many through` association, the `id` column won't be disambiguated. However, you can use the `association_ids` method instead to achieve the same effect as `pluck` but with disambiguation.

I think `pluck` should probably disambiguate the column name, but in the interim this fixes the problem. Sorry for not noticing this sooner.