{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/7","repository_url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record","labels_url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/7/comments","events_url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/7/events","html_url":"https://github.com/awslabs/aws-sdk-ruby-record/pull/7","id":147860651,"number":7,"title":"Add save! and save methods","user":{"login":"derigible","id":8007114,"avatar_url":"https://avatars.githubusercontent.com/u/8007114?v=3","gravatar_id":"","url":"https://api.github.com/users/derigible","html_url":"https://github.com/derigible","followers_url":"https://api.github.com/users/derigible/followers","following_url":"https://api.github.com/users/derigible/following{/other_user}","gists_url":"https://api.github.com/users/derigible/gists{/gist_id}","starred_url":"https://api.github.com/users/derigible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derigible/subscriptions","organizations_url":"https://api.github.com/users/derigible/orgs","repos_url":"https://api.github.com/users/derigible/repos","events_url":"https://api.github.com/users/derigible/events{/privacy}","received_events_url":"https://api.github.com/users/derigible/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-12T20:12:36Z","updated_at":"2016-04-12T20:53:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/pulls/7","html_url":"https://github.com/awslabs/aws-sdk-ruby-record/pull/7","diff_url":"https://github.com/awslabs/aws-sdk-ruby-record/pull/7.diff","patch_url":"https://github.com/awslabs/aws-sdk-ruby-record/pull/7.patch"},"body":"Break out the save method to match more closely with\r\nRuby style of <method>! to raise an error while\r\n<method> fails silently. Implemented to work like\r\nActiveRecord's save where an unsuccessful save will\r\nmark the record as invalid."},"comment":{"url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/comments/209097552","html_url":"https://github.com/awslabs/aws-sdk-ruby-record/pull/7#issuecomment-209097552","issue_url":"https://api.github.com/repos/awslabs/aws-sdk-ruby-record/issues/7","id":209097552,"user":{"login":"derigible","id":8007114,"avatar_url":"https://avatars.githubusercontent.com/u/8007114?v=3","gravatar_id":"","url":"https://api.github.com/users/derigible","html_url":"https://github.com/derigible","followers_url":"https://api.github.com/users/derigible/followers","following_url":"https://api.github.com/users/derigible/following{/other_user}","gists_url":"https://api.github.com/users/derigible/gists{/gist_id}","starred_url":"https://api.github.com/users/derigible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derigible/subscriptions","organizations_url":"https://api.github.com/users/derigible/orgs","repos_url":"https://api.github.com/users/derigible/repos","events_url":"https://api.github.com/users/derigible/events{/privacy}","received_events_url":"https://api.github.com/users/derigible/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T20:53:07Z","updated_at":"2016-04-12T20:53:07Z","body":"I couldn't figure out a way to set up a situation where some of the other errors (like NameCollision) would be able to propogate to the save. It seems like these errors would stop the workflow before save was ever given a chance to be called. But if there is a scenario I am missing i will add it to the specs."}}