{"action":"opened","issue":{"url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/14","labels_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/14/comments","events_url":"https://api.github.com/repos/fotinakis/jsonapi-serializers/issues/14/events","html_url":"https://github.com/fotinakis/jsonapi-serializers/issues/14","id":95310016,"number":14,"title":"Issue with collection detection","user":{"login":"green-arrow","id":2180127,"avatar_url":"https://avatars.githubusercontent.com/u/2180127?v=3","gravatar_id":"","url":"https://api.github.com/users/green-arrow","html_url":"https://github.com/green-arrow","followers_url":"https://api.github.com/users/green-arrow/followers","following_url":"https://api.github.com/users/green-arrow/following{/other_user}","gists_url":"https://api.github.com/users/green-arrow/gists{/gist_id}","starred_url":"https://api.github.com/users/green-arrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/green-arrow/subscriptions","organizations_url":"https://api.github.com/users/green-arrow/orgs","repos_url":"https://api.github.com/users/green-arrow/repos","events_url":"https://api.github.com/users/green-arrow/events{/privacy}","received_events_url":"https://api.github.com/users/green-arrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T23:14:42Z","updated_at":"2015-07-15T23:14:42Z","closed_at":null,"body":"We're currently using [Sequel](http://sequel.jeremyevans.net) for our data layer, and it happens that a `Sequel::Model` has an `each` method on individual models. This causes a `JSONAPI::Serializer::AmbiguousCollectionError`, because the test checks for that method.\r\n\r\nWould it be beneficial to switch that check to use something like this (line 255 of `serializer.rb):\r\n\r\n```ruby\r\nif objects.kind_of?(Array)\r\n```"}}