{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/963","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/963/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/963/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/963/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/963","id":90134713,"number":963,"title":"has_many :options doesn't work","user":{"login":"klautcomputing","id":3520174,"avatar_url":"https://avatars.githubusercontent.com/u/3520174?v=3","gravatar_id":"","url":"https://api.github.com/users/klautcomputing","html_url":"https://github.com/klautcomputing","followers_url":"https://api.github.com/users/klautcomputing/followers","following_url":"https://api.github.com/users/klautcomputing/following{/other_user}","gists_url":"https://api.github.com/users/klautcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/klautcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klautcomputing/subscriptions","organizations_url":"https://api.github.com/users/klautcomputing/orgs","repos_url":"https://api.github.com/users/klautcomputing/repos","events_url":"https://api.github.com/users/klautcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/klautcomputing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T15:37:49Z","updated_at":"2015-06-22T18:10:05Z","closed_at":null,"body":"I am in the process of updating to 0.10.0.rc2 and I have an Option model when I try to serialize it with:\r\n```ruby\r\nhas_many :options\r\n```\r\nI get the error: \r\n```no implicit conversion of Symbol into Integer```.\r\n\r\nIf I rename the association via: \r\n```ruby \r\nhas_many :foos, foreign_key: 'this_record_id', class_name: 'Option'\r\n```\r\nit works fine. \r\nBTW: I am upgrading from 0.9.3, hope that helps."},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/114204075","html_url":"https://github.com/rails-api/active_model_serializers/issues/963#issuecomment-114204075","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/963","id":114204075,"user":{"login":"klautcomputing","id":3520174,"avatar_url":"https://avatars.githubusercontent.com/u/3520174?v=3","gravatar_id":"","url":"https://api.github.com/users/klautcomputing","html_url":"https://github.com/klautcomputing","followers_url":"https://api.github.com/users/klautcomputing/followers","following_url":"https://api.github.com/users/klautcomputing/following{/other_user}","gists_url":"https://api.github.com/users/klautcomputing/gists{/gist_id}","starred_url":"https://api.github.com/users/klautcomputing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klautcomputing/subscriptions","organizations_url":"https://api.github.com/users/klautcomputing/orgs","repos_url":"https://api.github.com/users/klautcomputing/repos","events_url":"https://api.github.com/users/klautcomputing/events{/privacy}","received_events_url":"https://api.github.com/users/klautcomputing/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T18:10:05Z","updated_at":"2015-06-22T18:10:05Z","body":"Yes, seems about right. \r\nWell, it worked with 0.9.3. I guess because it was called serialization_options instead of options.\r\nThis is my current and ugly workaround\r\n```ruby\r\nclass UserSerializer\r\n  attributes :options\r\n  def options\r\n    o_serializer = ArraySerializer.new(object.options, each_serializer: OptionSerializer)\r\n    ActiveModel::Serializer::Adapter::Json.new(o_serializer).serializable_hash\r\n  end\r\nend\r\n```\r\nis there a particular reason for calling it options instead of serialization_options?"}}