{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12","id":98276091,"html_url":"https://github.com/rs-pro/rails_admin_toggleable/pull/12","diff_url":"https://github.com/rs-pro/rails_admin_toggleable/pull/12.diff","patch_url":"https://github.com/rs-pro/rails_admin_toggleable/pull/12.patch","issue_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/12","number":12,"state":"open","locked":false,"title":"lock the object before modification","user":{"login":"aharbick","id":199471,"avatar_url":"https://avatars.githubusercontent.com/u/199471?v=3","gravatar_id":"","url":"https://api.github.com/users/aharbick","html_url":"https://github.com/aharbick","followers_url":"https://api.github.com/users/aharbick/followers","following_url":"https://api.github.com/users/aharbick/following{/other_user}","gists_url":"https://api.github.com/users/aharbick/gists{/gist_id}","starred_url":"https://api.github.com/users/aharbick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharbick/subscriptions","organizations_url":"https://api.github.com/users/aharbick/orgs","repos_url":"https://api.github.com/users/aharbick/repos","events_url":"https://api.github.com/users/aharbick/events{/privacy}","received_events_url":"https://api.github.com/users/aharbick/received_events","type":"User","site_admin":false},"body":"If a model has complicated after_save code there can be concurrency issues.  Pessimistically lock the model before changing it.\r\n\r\nThis is perhaps only a problem because the field doesn't block double-clicks.  Perhaps there should be another PR to disable a second click until the AJAX call returns. \r\n","created_at":"2016-12-16T04:12:52Z","updated_at":"2016-12-16T04:12:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"195f1524706452462b8e7eb1dccb1b2091c258bd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12/commits","review_comments_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12/comments","review_comment_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/12/comments","statuses_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/statuses/18e8e3278a31af4aad8ea6373e35e194fd030f59","head":{"label":"bidwrangler:master","ref":"master","sha":"18e8e3278a31af4aad8ea6373e35e194fd030f59","user":{"login":"bidwrangler","id":8459893,"avatar_url":"https://avatars.githubusercontent.com/u/8459893?v=3","gravatar_id":"","url":"https://api.github.com/users/bidwrangler","html_url":"https://github.com/bidwrangler","followers_url":"https://api.github.com/users/bidwrangler/followers","following_url":"https://api.github.com/users/bidwrangler/following{/other_user}","gists_url":"https://api.github.com/users/bidwrangler/gists{/gist_id}","starred_url":"https://api.github.com/users/bidwrangler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bidwrangler/subscriptions","organizations_url":"https://api.github.com/users/bidwrangler/orgs","repos_url":"https://api.github.com/users/bidwrangler/repos","events_url":"https://api.github.com/users/bidwrangler/events{/privacy}","received_events_url":"https://api.github.com/users/bidwrangler/received_events","type":"Organization","site_admin":false},"repo":{"id":76617071,"name":"rails_admin_toggleable","full_name":"bidwrangler/rails_admin_toggleable","owner":{"login":"bidwrangler","id":8459893,"avatar_url":"https://avatars.githubusercontent.com/u/8459893?v=3","gravatar_id":"","url":"https://api.github.com/users/bidwrangler","html_url":"https://github.com/bidwrangler","followers_url":"https://api.github.com/users/bidwrangler/followers","following_url":"https://api.github.com/users/bidwrangler/following{/other_user}","gists_url":"https://api.github.com/users/bidwrangler/gists{/gist_id}","starred_url":"https://api.github.com/users/bidwrangler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bidwrangler/subscriptions","organizations_url":"https://api.github.com/users/bidwrangler/orgs","repos_url":"https://api.github.com/users/bidwrangler/repos","events_url":"https://api.github.com/users/bidwrangler/events{/privacy}","received_events_url":"https://api.github.com/users/bidwrangler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bidwrangler/rails_admin_toggleable","description":"Toggleable field for rails admin","fork":true,"url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable","forks_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/forks","keys_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/teams","hooks_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/hooks","issue_events_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/issues/events{/number}","events_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/events","assignees_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/assignees{/user}","branches_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/branches{/branch}","tags_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/tags","blobs_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/git/refs{/sha}","trees_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/statuses/{sha}","languages_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/languages","stargazers_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/stargazers","contributors_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/contributors","subscribers_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/subscribers","subscription_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/subscription","commits_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/commits{/sha}","git_commits_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/git/commits{/sha}","comments_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/comments{/number}","issue_comment_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/issues/comments{/number}","contents_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/contents/{+path}","compare_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/merges","archive_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/downloads","issues_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/issues{/number}","pulls_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/pulls{/number}","milestones_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/milestones{/number}","notifications_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/labels{/name}","releases_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/releases{/id}","deployments_url":"https://api.github.com/repos/bidwrangler/rails_admin_toggleable/deployments","created_at":"2016-12-16T03:16:00Z","updated_at":"2016-12-16T03:16:01Z","pushed_at":"2016-12-16T04:01:55Z","git_url":"git://github.com/bidwrangler/rails_admin_toggleable.git","ssh_url":"git@github.com:bidwrangler/rails_admin_toggleable.git","clone_url":"https://github.com/bidwrangler/rails_admin_toggleable.git","svn_url":"https://github.com/bidwrangler/rails_admin_toggleable","homepage":"","size":28,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rs-pro:master","ref":"master","sha":"f681d697af01d74ca66b494fcefd216397aeef2f","user":{"login":"rs-pro","id":1487640,"avatar_url":"https://avatars.githubusercontent.com/u/1487640?v=3","gravatar_id":"","url":"https://api.github.com/users/rs-pro","html_url":"https://github.com/rs-pro","followers_url":"https://api.github.com/users/rs-pro/followers","following_url":"https://api.github.com/users/rs-pro/following{/other_user}","gists_url":"https://api.github.com/users/rs-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/rs-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs-pro/subscriptions","organizations_url":"https://api.github.com/users/rs-pro/orgs","repos_url":"https://api.github.com/users/rs-pro/repos","events_url":"https://api.github.com/users/rs-pro/events{/privacy}","received_events_url":"https://api.github.com/users/rs-pro/received_events","type":"Organization","site_admin":false},"repo":{"id":8778461,"name":"rails_admin_toggleable","full_name":"rs-pro/rails_admin_toggleable","owner":{"login":"rs-pro","id":1487640,"avatar_url":"https://avatars.githubusercontent.com/u/1487640?v=3","gravatar_id":"","url":"https://api.github.com/users/rs-pro","html_url":"https://github.com/rs-pro","followers_url":"https://api.github.com/users/rs-pro/followers","following_url":"https://api.github.com/users/rs-pro/following{/other_user}","gists_url":"https://api.github.com/users/rs-pro/gists{/gist_id}","starred_url":"https://api.github.com/users/rs-pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs-pro/subscriptions","organizations_url":"https://api.github.com/users/rs-pro/orgs","repos_url":"https://api.github.com/users/rs-pro/repos","events_url":"https://api.github.com/users/rs-pro/events{/privacy}","received_events_url":"https://api.github.com/users/rs-pro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rs-pro/rails_admin_toggleable","description":"Toggleable field for rails admin","fork":false,"url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable","forks_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/forks","keys_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/teams","hooks_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/hooks","issue_events_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/events{/number}","events_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/events","assignees_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/assignees{/user}","branches_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/branches{/branch}","tags_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/tags","blobs_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/git/refs{/sha}","trees_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/statuses/{sha}","languages_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/languages","stargazers_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/stargazers","contributors_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/contributors","subscribers_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/subscribers","subscription_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/subscription","commits_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/commits{/sha}","git_commits_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/git/commits{/sha}","comments_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/comments{/number}","issue_comment_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/comments{/number}","contents_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/contents/{+path}","compare_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/merges","archive_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/downloads","issues_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues{/number}","pulls_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls{/number}","milestones_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/milestones{/number}","notifications_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/labels{/name}","releases_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/releases{/id}","deployments_url":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/deployments","created_at":"2013-03-14T15:28:57Z","updated_at":"2016-08-03T11:14:00Z","pushed_at":"2016-12-16T04:12:52Z","git_url":"git://github.com/rs-pro/rails_admin_toggleable.git","ssh_url":"git@github.com:rs-pro/rails_admin_toggleable.git","clone_url":"https://github.com/rs-pro/rails_admin_toggleable.git","svn_url":"https://github.com/rs-pro/rails_admin_toggleable","homepage":"","size":28,"stargazers_count":29,"watchers_count":29,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":4,"forks":16,"open_issues":4,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12"},"html":{"href":"https://github.com/rs-pro/rails_admin_toggleable/pull/12"},"issue":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/12"},"comments":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/rs-pro/rails_admin_toggleable/statuses/18e8e3278a31af4aad8ea6373e35e194fd030f59"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"aharbick"}}