{"action":"created","issue":{"url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/58","repository_url":"https://api.github.com/repos/devmynd/jsonb_accessor","labels_url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/58/comments","events_url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/58/events","html_url":"https://github.com/devmynd/jsonb_accessor/issues/58","id":192107733,"number":58,"title":"Strange behaviour when updating an object twice subsequently in jobs","user":{"login":"hundsim","id":1907343,"avatar_url":"https://avatars.githubusercontent.com/u/1907343?v=3","gravatar_id":"","url":"https://api.github.com/users/hundsim","html_url":"https://github.com/hundsim","followers_url":"https://api.github.com/users/hundsim/followers","following_url":"https://api.github.com/users/hundsim/following{/other_user}","gists_url":"https://api.github.com/users/hundsim/gists{/gist_id}","starred_url":"https://api.github.com/users/hundsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hundsim/subscriptions","organizations_url":"https://api.github.com/users/hundsim/orgs","repos_url":"https://api.github.com/users/hundsim/repos","events_url":"https://api.github.com/users/hundsim/events{/privacy}","received_events_url":"https://api.github.com/users/hundsim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T20:22:44Z","updated_at":"2016-11-28T20:46:22Z","closed_at":null,"body":"I have two email jobs that are run subsequently. The jobs both update a shared object (Event), on different jsonb-attributes. \r\n\r\n    class Event < ApplicationRecord\r\n      jsonb_accessor :data,\r\n      response_code_host: :integer,\r\n      response__code_guest: :integer\r\n    end\r\n\r\nBut only one attribute persists its value, the one that is updated last. It's if like Rails cannot see the difference between different attribute-names and just over-writes the first saved one with new key and value.\r\n\r\nI cannot reproduce this in the console, it only happens in ActiveJob.\r\n"},"comment":{"url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/comments/263389101","html_url":"https://github.com/devmynd/jsonb_accessor/issues/58#issuecomment-263389101","issue_url":"https://api.github.com/repos/devmynd/jsonb_accessor/issues/58","id":263389101,"user":{"login":"crismali","id":3209502,"avatar_url":"https://avatars.githubusercontent.com/u/3209502?v=3","gravatar_id":"","url":"https://api.github.com/users/crismali","html_url":"https://github.com/crismali","followers_url":"https://api.github.com/users/crismali/followers","following_url":"https://api.github.com/users/crismali/following{/other_user}","gists_url":"https://api.github.com/users/crismali/gists{/gist_id}","starred_url":"https://api.github.com/users/crismali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crismali/subscriptions","organizations_url":"https://api.github.com/users/crismali/orgs","repos_url":"https://api.github.com/users/crismali/repos","events_url":"https://api.github.com/users/crismali/events{/privacy}","received_events_url":"https://api.github.com/users/crismali/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T20:46:22Z","updated_at":"2016-11-28T20:46:22Z","body":"When you say the object is shared, do you mean the Ruby instance of it or that each job pulls the record out of the database?"}}
{"actor":{"display_login":"crismali"}}