josevalim/active_model_serializers — pull request #10 by Adman65 (2011-12-09 15:18:38+00:00)
Title: Implicit detection for has_many serializer

Say you have this serializer:

```ruby
class BlogSerializer < ActiveModel::Serializer
has_many :posts
end
```

`ActiveModel::Serializer` will look for a `PostsSerializer`. This commit detects that it's a has_many and correctly assigns a `PostSerializer` instead of the plural version.