{"action":"created","comment":{"url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/comments/34330864","id":34330864,"diff_hunk":"@@ -24,14 +24,22 @@ module Integrations #:nodoc:\n     # \n     # == Actions\n     # \n-    # By default, the action that will be invoked when a state is transitioned\n-    # is the +save+ action.  This will cause the record to save the changes","path":"lib/state_machines/integrations/active_record.rb","position":5,"original_position":5,"commit_id":"cb25d980243e35104036a5ea047b0407d6de7814","original_commit_id":"cb25d980243e35104036a5ea047b0407d6de7814","user":{"login":"clupprich","id":773,"avatar_url":"https://avatars.githubusercontent.com/u/773?v=3","gravatar_id":"","url":"https://api.github.com/users/clupprich","html_url":"https://github.com/clupprich","followers_url":"https://api.github.com/users/clupprich/followers","following_url":"https://api.github.com/users/clupprich/following{/other_user}","gists_url":"https://api.github.com/users/clupprich/gists{/gist_id}","starred_url":"https://api.github.com/users/clupprich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clupprich/subscriptions","organizations_url":"https://api.github.com/users/clupprich/orgs","repos_url":"https://api.github.com/users/clupprich/repos","events_url":"https://api.github.com/users/clupprich/events{/privacy}","received_events_url":"https://api.github.com/users/clupprich/received_events","type":"User","site_admin":false},"body":"As far as I know, the bang version of the method returns the result or raises an exception vs the non-bang method will just return the result. It would feel strange if one saves the record and the other doesn't.","created_at":"2015-07-10T06:42:00Z","updated_at":"2015-07-10T06:42:00Z","html_url":"https://github.com/state-machines/state_machines-activerecord/pull/19#discussion_r34330864","pull_request_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/comments/34330864"},"html":{"href":"https://github.com/state-machines/state_machines-activerecord/pull/19#discussion_r34330864"},"pull_request":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19","id":34888460,"html_url":"https://github.com/state-machines/state_machines-activerecord/pull/19","diff_url":"https://github.com/state-machines/state_machines-activerecord/pull/19.diff","patch_url":"https://github.com/state-machines/state_machines-activerecord/pull/19.patch","issue_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/19","number":19,"state":"open","locked":false,"title":"Fix documentation in regards to default action save","user":{"login":"clupprich","id":773,"avatar_url":"https://avatars.githubusercontent.com/u/773?v=3","gravatar_id":"","url":"https://api.github.com/users/clupprich","html_url":"https://github.com/clupprich","followers_url":"https://api.github.com/users/clupprich/followers","following_url":"https://api.github.com/users/clupprich/following{/other_user}","gists_url":"https://api.github.com/users/clupprich/gists{/gist_id}","starred_url":"https://api.github.com/users/clupprich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clupprich/subscriptions","organizations_url":"https://api.github.com/users/clupprich/orgs","repos_url":"https://api.github.com/users/clupprich/repos","events_url":"https://api.github.com/users/clupprich/events{/privacy}","received_events_url":"https://api.github.com/users/clupprich/received_events","type":"User","site_admin":false},"body":"As @xxswingxx  found out in issue #4, you will need to set `save` as an action on a new state machine, it's not set by default. This PR fixes the documentation in that regards.\r\n\r\nIf you would rather have the actual behaviour fixed (records saved by default), just tell me, I can also submit a PR for that.","created_at":"2015-05-07T07:08:50Z","updated_at":"2015-07-10T06:42:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3eb9f1561665b5f5f781c5e5ba973f9175574ecb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19/commits","review_comments_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19/comments","review_comment_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/comments{/number}","comments_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/19/comments","statuses_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/statuses/cb25d980243e35104036a5ea047b0407d6de7814","head":{"label":"clupprich:doc-fix-default-save","ref":"doc-fix-default-save","sha":"cb25d980243e35104036a5ea047b0407d6de7814","user":{"login":"clupprich","id":773,"avatar_url":"https://avatars.githubusercontent.com/u/773?v=3","gravatar_id":"","url":"https://api.github.com/users/clupprich","html_url":"https://github.com/clupprich","followers_url":"https://api.github.com/users/clupprich/followers","following_url":"https://api.github.com/users/clupprich/following{/other_user}","gists_url":"https://api.github.com/users/clupprich/gists{/gist_id}","starred_url":"https://api.github.com/users/clupprich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clupprich/subscriptions","organizations_url":"https://api.github.com/users/clupprich/orgs","repos_url":"https://api.github.com/users/clupprich/repos","events_url":"https://api.github.com/users/clupprich/events{/privacy}","received_events_url":"https://api.github.com/users/clupprich/received_events","type":"User","site_admin":false},"repo":{"id":35204151,"name":"state_machines-activerecord","full_name":"clupprich/state_machines-activerecord","owner":{"login":"clupprich","id":773,"avatar_url":"https://avatars.githubusercontent.com/u/773?v=3","gravatar_id":"","url":"https://api.github.com/users/clupprich","html_url":"https://github.com/clupprich","followers_url":"https://api.github.com/users/clupprich/followers","following_url":"https://api.github.com/users/clupprich/following{/other_user}","gists_url":"https://api.github.com/users/clupprich/gists{/gist_id}","starred_url":"https://api.github.com/users/clupprich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clupprich/subscriptions","organizations_url":"https://api.github.com/users/clupprich/orgs","repos_url":"https://api.github.com/users/clupprich/repos","events_url":"https://api.github.com/users/clupprich/events{/privacy}","received_events_url":"https://api.github.com/users/clupprich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clupprich/state_machines-activerecord","description":"StateMachines Active Record Integration","fork":true,"url":"https://api.github.com/repos/clupprich/state_machines-activerecord","forks_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/forks","keys_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/teams","hooks_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/hooks","issue_events_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/issues/events{/number}","events_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/events","assignees_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/assignees{/user}","branches_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/branches{/branch}","tags_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/tags","blobs_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/git/refs{/sha}","trees_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/statuses/{sha}","languages_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/languages","stargazers_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/stargazers","contributors_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/contributors","subscribers_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/subscribers","subscription_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/subscription","commits_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/commits{/sha}","git_commits_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/git/commits{/sha}","comments_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/comments{/number}","issue_comment_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/issues/comments{/number}","contents_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/contents/{+path}","compare_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/merges","archive_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/downloads","issues_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/issues{/number}","pulls_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/pulls{/number}","milestones_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/milestones{/number}","notifications_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/labels{/name}","releases_url":"https://api.github.com/repos/clupprich/state_machines-activerecord/releases{/id}","created_at":"2015-05-07T07:02:44Z","updated_at":"2015-05-07T07:02:44Z","pushed_at":"2015-05-07T07:06:27Z","git_url":"git://github.com/clupprich/state_machines-activerecord.git","ssh_url":"git@github.com:clupprich/state_machines-activerecord.git","clone_url":"https://github.com/clupprich/state_machines-activerecord.git","svn_url":"https://github.com/clupprich/state_machines-activerecord","homepage":"https://github.com/state-machines/state_machines-activerecord","size":122,"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":"state-machines:master","ref":"master","sha":"32b9238837f8a65933da14e77b7ed28f812a00ba","user":{"login":"state-machines","id":7613709,"avatar_url":"https://avatars.githubusercontent.com/u/7613709?v=3","gravatar_id":"","url":"https://api.github.com/users/state-machines","html_url":"https://github.com/state-machines","followers_url":"https://api.github.com/users/state-machines/followers","following_url":"https://api.github.com/users/state-machines/following{/other_user}","gists_url":"https://api.github.com/users/state-machines/gists{/gist_id}","starred_url":"https://api.github.com/users/state-machines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/state-machines/subscriptions","organizations_url":"https://api.github.com/users/state-machines/orgs","repos_url":"https://api.github.com/users/state-machines/repos","events_url":"https://api.github.com/users/state-machines/events{/privacy}","received_events_url":"https://api.github.com/users/state-machines/received_events","type":"Organization","site_admin":false},"repo":{"id":28869403,"name":"state_machines-activerecord","full_name":"state-machines/state_machines-activerecord","owner":{"login":"state-machines","id":7613709,"avatar_url":"https://avatars.githubusercontent.com/u/7613709?v=3","gravatar_id":"","url":"https://api.github.com/users/state-machines","html_url":"https://github.com/state-machines","followers_url":"https://api.github.com/users/state-machines/followers","following_url":"https://api.github.com/users/state-machines/following{/other_user}","gists_url":"https://api.github.com/users/state-machines/gists{/gist_id}","starred_url":"https://api.github.com/users/state-machines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/state-machines/subscriptions","organizations_url":"https://api.github.com/users/state-machines/orgs","repos_url":"https://api.github.com/users/state-machines/repos","events_url":"https://api.github.com/users/state-machines/events{/privacy}","received_events_url":"https://api.github.com/users/state-machines/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/state-machines/state_machines-activerecord","description":"StateMachines Active Record Integration","fork":false,"url":"https://api.github.com/repos/state-machines/state_machines-activerecord","forks_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/forks","keys_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/keys{/key_id}","collaborators_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/teams","hooks_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/hooks","issue_events_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/events{/number}","events_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/events","assignees_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/assignees{/user}","branches_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/branches{/branch}","tags_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/tags","blobs_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/git/refs{/sha}","trees_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/git/trees{/sha}","statuses_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/statuses/{sha}","languages_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/languages","stargazers_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/stargazers","contributors_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/contributors","subscribers_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/subscribers","subscription_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/subscription","commits_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/commits{/sha}","git_commits_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/git/commits{/sha}","comments_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/comments{/number}","issue_comment_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/comments{/number}","contents_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/contents/{+path}","compare_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/compare/{base}...{head}","merges_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/merges","archive_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/downloads","issues_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues{/number}","pulls_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls{/number}","milestones_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/milestones{/number}","notifications_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/labels{/name}","releases_url":"https://api.github.com/repos/state-machines/state_machines-activerecord/releases{/id}","created_at":"2015-01-06T15:29:46Z","updated_at":"2015-07-10T00:47:23Z","pushed_at":"2015-06-20T18:48:06Z","git_url":"git://github.com/state-machines/state_machines-activerecord.git","ssh_url":"git@github.com:state-machines/state_machines-activerecord.git","clone_url":"https://github.com/state-machines/state_machines-activerecord.git","svn_url":"https://github.com/state-machines/state_machines-activerecord","homepage":"https://github.com/state-machines/state_machines-activerecord","size":432,"stargazers_count":62,"watchers_count":62,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":4,"forks":11,"open_issues":4,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19"},"html":{"href":"https://github.com/state-machines/state_machines-activerecord/pull/19"},"issue":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/19"},"comments":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/state-machines/state_machines-activerecord/statuses/cb25d980243e35104036a5ea047b0407d6de7814"}}}}