{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/648","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/648/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/648/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/648","id":42487343,"number":648,"title":"undefined method `belongs_to`","user":{"login":"colby-swandale","id":996377,"avatar_url":"https://avatars.githubusercontent.com/u/996377?v=3","gravatar_id":"","url":"https://api.github.com/users/colby-swandale","html_url":"https://github.com/colby-swandale","followers_url":"https://api.github.com/users/colby-swandale/followers","following_url":"https://api.github.com/users/colby-swandale/following{/other_user}","gists_url":"https://api.github.com/users/colby-swandale/gists{/gist_id}","starred_url":"https://api.github.com/users/colby-swandale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colby-swandale/subscriptions","organizations_url":"https://api.github.com/users/colby-swandale/orgs","repos_url":"https://api.github.com/users/colby-swandale/repos","events_url":"https://api.github.com/users/colby-swandale/events{/privacy}","received_events_url":"https://api.github.com/users/colby-swandale/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-11T04:14:47Z","updated_at":"2015-02-01T15:03:45Z","closed_at":"2015-01-09T08:48:31Z","body":"I am using rails 4.1.4 with the latest active_model_serializers from rubygems.\r\n\r\nIn the documentation there are examples that show the usage of `belongs_to` but when i try it myself rails complains the method is undefined. Am i missing something? Here is Serializer class i am trying this on.\r\n\r\n```\r\nclass UserSerializer < ActiveModel::Serializer\r\n  attributes :first_name, :last_name, :email, :state, :uuid\r\n  belongs_to :tenant\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/72368113","html_url":"https://github.com/rails-api/active_model_serializers/issues/648#issuecomment-72368113","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/648","id":72368113,"user":{"login":"gnapse","id":15199,"avatar_url":"https://avatars.githubusercontent.com/u/15199?v=3","gravatar_id":"","url":"https://api.github.com/users/gnapse","html_url":"https://github.com/gnapse","followers_url":"https://api.github.com/users/gnapse/followers","following_url":"https://api.github.com/users/gnapse/following{/other_user}","gists_url":"https://api.github.com/users/gnapse/gists{/gist_id}","starred_url":"https://api.github.com/users/gnapse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnapse/subscriptions","organizations_url":"https://api.github.com/users/gnapse/orgs","repos_url":"https://api.github.com/users/gnapse/repos","events_url":"https://api.github.com/users/gnapse/events{/privacy}","received_events_url":"https://api.github.com/users/gnapse/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T15:03:45Z","updated_at":"2015-02-01T15:03:45Z","body":"The README on master (the one that is shown when someone visits the repository's home page, still shows `belongs_to` in an example, and no example with `has_one`."}}