{"action":"closed","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/899","repository_url":"https://api.github.com/repos/rails-api/active_model_serializers","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/899/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/899/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/899","id":73084344,"number":899,"title":"Side loading doesn't work in 0.10.0.rc1 (non-JSONAPI)","user":{"login":"blakemcintyre","id":110291,"avatar_url":"https://avatars.githubusercontent.com/u/110291?v=3","gravatar_id":"","url":"https://api.github.com/users/blakemcintyre","html_url":"https://github.com/blakemcintyre","followers_url":"https://api.github.com/users/blakemcintyre/followers","following_url":"https://api.github.com/users/blakemcintyre/following{/other_user}","gists_url":"https://api.github.com/users/blakemcintyre/gists{/gist_id}","starred_url":"https://api.github.com/users/blakemcintyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakemcintyre/subscriptions","organizations_url":"https://api.github.com/users/blakemcintyre/orgs","repos_url":"https://api.github.com/users/blakemcintyre/repos","events_url":"https://api.github.com/users/blakemcintyre/events{/privacy}","received_events_url":"https://api.github.com/users/blakemcintyre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails-api/active_model_serializers/labels/V:%200.10.x","name":"V: 0.10.x","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"joaomdmoura","id":667063,"avatar_url":"https://avatars.githubusercontent.com/u/667063?v=3","gravatar_id":"","url":"https://api.github.com/users/joaomdmoura","html_url":"https://github.com/joaomdmoura","followers_url":"https://api.github.com/users/joaomdmoura/followers","following_url":"https://api.github.com/users/joaomdmoura/following{/other_user}","gists_url":"https://api.github.com/users/joaomdmoura/gists{/gist_id}","starred_url":"https://api.github.com/users/joaomdmoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaomdmoura/subscriptions","organizations_url":"https://api.github.com/users/joaomdmoura/orgs","repos_url":"https://api.github.com/users/joaomdmoura/repos","events_url":"https://api.github.com/users/joaomdmoura/events{/privacy}","received_events_url":"https://api.github.com/users/joaomdmoura/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/milestones/5","html_url":"https://github.com/rails-api/active_model_serializers/milestones/0.10","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/milestones/5/labels","id":1011188,"number":5,"title":"0.10","description":"","creator":{"login":"kurko","id":70312,"avatar_url":"https://avatars.githubusercontent.com/u/70312?v=3","gravatar_id":"","url":"https://api.github.com/users/kurko","html_url":"https://github.com/kurko","followers_url":"https://api.github.com/users/kurko/followers","following_url":"https://api.github.com/users/kurko/following{/other_user}","gists_url":"https://api.github.com/users/kurko/gists{/gist_id}","starred_url":"https://api.github.com/users/kurko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurko/subscriptions","organizations_url":"https://api.github.com/users/kurko/orgs","repos_url":"https://api.github.com/users/kurko/repos","events_url":"https://api.github.com/users/kurko/events{/privacy}","received_events_url":"https://api.github.com/users/kurko/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":63,"state":"open","created_at":"2015-03-08T13:22:14Z","updated_at":"2016-03-15T20:22:08Z","due_on":"2015-11-15T02:00:00Z","closed_at":null},"comments":13,"created_at":"2015-05-04T17:56:47Z","updated_at":"2016-03-15T20:22:08Z","closed_at":"2016-03-15T20:22:08Z","body":"I've been trying to setup side loading using the standard adapter, (not JSONAPI), and have been unable to generate any embedded data. This works in 0.8.1 but the issue stated in https://github.com/rails-api/active_model_serializers/issues/377 has lead me to trying 0.10.x. When I tried using the JSONAPI adapter I was able to get included/linked data.\r\n\r\nThe following is the basic setup I've been testing with:\r\n```ruby\r\nclass ArticleSerializer < ActiveModel::Serializer\r\n  attributes :id, :title, :published_at\r\n\r\n  has_many :authors, embed: :ids, serializer: UserSerializer\r\n\r\n  url :article\r\nend\r\n\r\nclass UserSerializer < ActiveModel::Serializer\r\n  attributes :id, :name\r\n\r\n  url :user\r\nend\r\n\r\n\r\nclass Article < ActiveRecord::Base\r\n  has_many :article_authors\r\n  has_many :authors, through: :article_authors, class: User\r\nend\r\n\r\nclass ArticleAuthor < ActiveRecord::Base\r\n  belongs_to :article\r\n  belongs_to :author, class: User\r\nend\r\n\r\nclass User < ActiveRecord::Base\r\n  has_many :article_authors, foreign_key: :author_id\r\n  has_many :articles, through: :article_authors\r\nend\r\n\r\n\r\nclass ArticlesController < ApplicationController\r\n  def index\r\n    render json: Article.last(3), root: :articles, include: 'authors'\r\n  end\r\nend\r\n```"}}