{"action":"created","issue":{"url":"https://api.github.com/repos/globalize/globalize/issues/685","repository_url":"https://api.github.com/repos/globalize/globalize","labels_url":"https://api.github.com/repos/globalize/globalize/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/globalize/globalize/issues/685/comments","events_url":"https://api.github.com/repos/globalize/globalize/issues/685/events","html_url":"https://github.com/globalize/globalize/issues/685","id":324704870,"number":685,"title":"unknown attribute 'locale' in create","user":{"login":"basex","id":357288,"avatar_url":"https://avatars3.githubusercontent.com/u/357288?v=4","gravatar_id":"","url":"https://api.github.com/users/basex","html_url":"https://github.com/basex","followers_url":"https://api.github.com/users/basex/followers","following_url":"https://api.github.com/users/basex/following{/other_user}","gists_url":"https://api.github.com/users/basex/gists{/gist_id}","starred_url":"https://api.github.com/users/basex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basex/subscriptions","organizations_url":"https://api.github.com/users/basex/orgs","repos_url":"https://api.github.com/users/basex/repos","events_url":"https://api.github.com/users/basex/events{/privacy}","received_events_url":"https://api.github.com/users/basex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-20T12:15:25Z","updated_at":"2018-05-28T12:33:15Z","closed_at":null,"author_association":"NONE","body":"There is a regression bug on the master. Not sure if related with updates to globalize or to activerecord.\r\n\r\n```ruby\r\nComment.where(post_id: 10, user: 'test').create #=> works ok\r\nPost.find(10).comments.where(user: 'test').create #=> ActiveModel::UnknownAttributeError: unknown attribute 'locale' for Comment.\r\n```\r\n\r\nSeems to be failing in https://github.com/globalize/globalize/blob/8a193c1272c3640e516ef36ac78e5d634152d3a5/lib/globalize/active_record/attributes.rb#L10\r\n\r\ngem 'activerecord', '5.2.0'\r\ngem 'globalize', '5.1.0' - master\r\n"},"comment":{"url":"https://api.github.com/repos/globalize/globalize/issues/comments/392515141","html_url":"https://github.com/globalize/globalize/issues/685#issuecomment-392515141","issue_url":"https://api.github.com/repos/globalize/globalize/issues/685","id":392515141,"user":{"login":"matthv","id":10195400,"avatar_url":"https://avatars1.githubusercontent.com/u/10195400?v=4","gravatar_id":"","url":"https://api.github.com/users/matthv","html_url":"https://github.com/matthv","followers_url":"https://api.github.com/users/matthv/followers","following_url":"https://api.github.com/users/matthv/following{/other_user}","gists_url":"https://api.github.com/users/matthv/gists{/gist_id}","starred_url":"https://api.github.com/users/matthv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthv/subscriptions","organizations_url":"https://api.github.com/users/matthv/orgs","repos_url":"https://api.github.com/users/matthv/repos","events_url":"https://api.github.com/users/matthv/events{/privacy}","received_events_url":"https://api.github.com/users/matthv/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T12:33:15Z","updated_at":"2018-05-28T12:33:15Z","author_association":"NONE","body":"I had the same issue and your fork fixed it !"}}
{"actor":{"display_login":"matthv"}}