{"action":"reopened","pull_request":{"state":"open","created_at":"2011-12-09T15:18:38Z","review_comments":0,"updated_at":"2011-12-12T09:33:19Z","changed_files":2,"_links":{"review_comments":{"href":"https://api.github.com/repos/josevalim/active_model_serializers/pulls/10/comments"},"comments":{"href":"https://api.github.com/repos/josevalim/active_model_serializers/issues/10/comments"},"html":{"href":"https://github.com/josevalim/active_model_serializers/pull/10"},"self":{"href":"https://api.github.com/repos/josevalim/active_model_serializers/pulls/10"}},"patch_url":"https://github.com/josevalim/active_model_serializers/pull/10.patch","comments":10,"issue_url":"https://github.com/josevalim/active_model_serializers/issues/10","user":{"gravatar_id":"877677f3c0cc6f8822a57b6732933d31","id":48928,"url":"https://api.github.com/users/Adman65","avatar_url":"https://secure.gravatar.com/avatar/877677f3c0cc6f8822a57b6732933d31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Adman65"},"merged":false,"body":"Say you have this serializer:\r\n\r\n```ruby\r\nclass BlogSerializer < ActiveModel::Serializer\r\n  has_many :posts\r\nend\r\n```\r\n\r\n`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.\r\n","deletions":0,"commits":1,"mergeable":true,"id":577262,"base":{"user":{"gravatar_id":"e837f6b7fd146ab16ed3d663476c063e","id":9582,"url":"https://api.github.com/users/josevalim","avatar_url":"https://secure.gravatar.com/avatar/e837f6b7fd146ab16ed3d663476c063e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"josevalim"},"repo":{"created_at":"2011-12-01T06:39:26Z","pushed_at":"2011-12-09T15:09:08Z","updated_at":"2011-12-11T18:14:23Z","private":false,"clone_url":"https://github.com/josevalim/active_model_serializers.git","name":"active_model_serializers","watchers":57,"master_branch":null,"svn_url":"https://svn.github.com/josevalim/active_model_serializers","language":"Ruby","forks":4,"owner":{"gravatar_id":"e837f6b7fd146ab16ed3d663476c063e","id":9582,"url":"https://api.github.com/users/josevalim","avatar_url":"https://secure.gravatar.com/avatar/e837f6b7fd146ab16ed3d663476c063e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"josevalim"},"id":2889230,"homepage":"","git_url":"git://github.com/josevalim/active_model_serializers.git","description":"ActiveModel::Serializer implementation and Rails hooks","html_url":"https://github.com/josevalim/active_model_serializers","url":"https://api.github.com/repos/josevalim/active_model_serializers","size":240,"fork":false,"open_issues":1,"ssh_url":"git@github.com:josevalim/active_model_serializers.git"},"sha":"97113ae2bfed30fdd0411c20279f936653aab6f5","ref":"master","label":"josevalim:master"},"additions":26,"merged_by":null,"number":10,"title":"Implicit detection for has_many serializer","head":{"user":{"gravatar_id":"877677f3c0cc6f8822a57b6732933d31","id":48928,"url":"https://api.github.com/users/Adman65","avatar_url":"https://secure.gravatar.com/avatar/877677f3c0cc6f8822a57b6732933d31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Adman65"},"repo":{"created_at":"2011-12-01T17:02:15Z","pushed_at":"2011-12-12T09:31:27Z","updated_at":"2011-12-12T09:31:27Z","private":false,"clone_url":"https://github.com/Adman65/active_model_serializers.git","name":"active_model_serializers","watchers":1,"master_branch":null,"svn_url":"https://svn.github.com/Adman65/active_model_serializers","language":"Ruby","forks":0,"owner":{"gravatar_id":"877677f3c0cc6f8822a57b6732933d31","id":48928,"url":"https://api.github.com/users/Adman65","avatar_url":"https://secure.gravatar.com/avatar/877677f3c0cc6f8822a57b6732933d31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"Adman65"},"id":2892607,"homepage":"","git_url":"git://github.com/Adman65/active_model_serializers.git","description":"ActiveModel::Serializer implementation and Rails hooks","html_url":"https://github.com/Adman65/active_model_serializers","url":"https://api.github.com/repos/Adman65/active_model_serializers","size":160,"fork":true,"open_issues":0,"ssh_url":"git@github.com:Adman65/active_model_serializers.git"},"sha":"2c240cf2e063251069ded14cc923125c858b0370","ref":"has_many-implicit-serializer","label":"Adman65:has_many-implicit-serializer"},"html_url":"https://github.com/josevalim/active_model_serializers/pull/10","closed_at":null,"url":"https://api.github.com/repos/josevalim/active_model_serializers/pulls/10","diff_url":"https://github.com/josevalim/active_model_serializers/pull/10.diff","merged_at":null},"number":10}