{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/shutl/shutl_resource/pulls/17","id":44767387,"html_url":"https://github.com/shutl/shutl_resource/pull/17","diff_url":"https://github.com/shutl/shutl_resource/pull/17.diff","patch_url":"https://github.com/shutl/shutl_resource/pull/17.patch","issue_url":"https://api.github.com/repos/shutl/shutl_resource/issues/17","number":17,"state":"open","locked":false,"title":"Allow method to be passed in options for .save","user":{"login":"stevenjack","id":527874,"avatar_url":"https://avatars.githubusercontent.com/u/527874?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenjack","html_url":"https://github.com/stevenjack","followers_url":"https://api.github.com/users/stevenjack/followers","following_url":"https://api.github.com/users/stevenjack/following{/other_user}","gists_url":"https://api.github.com/users/stevenjack/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenjack/subscriptions","organizations_url":"https://api.github.com/users/stevenjack/orgs","repos_url":"https://api.github.com/users/stevenjack/repos","events_url":"https://api.github.com/users/stevenjack/events{/privacy}","received_events_url":"https://api.github.com/users/stevenjack/received_events","type":"User","site_admin":false},"body":"### Problem\r\n\r\nThe  `job_status/:carrier_id` endpoint uses a `POST` rather than `PUT` for updating, this is a problem because the `save` method (That `update` delegates to) sets the method type as `:put` and doesn't allow it to be overridden. Changing the endpoint to be `PUT` rather than `POST` is a big change that wouldn't be worth doing.\r\n\r\n### Solution\r\n\r\nAllow the method to be changed via the `options`, for example:\r\n\r\n```ruby\r\nMy::Shutl::Resource.update({\"some\" => property, {\"auth\" => \"my_token\", \"method\" => :post})\r\n```","created_at":"2015-09-11T10:25:50Z","updated_at":"2015-09-11T10:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shutl/shutl_resource/pulls/17/commits","review_comments_url":"https://api.github.com/repos/shutl/shutl_resource/pulls/17/comments","review_comment_url":"https://api.github.com/repos/shutl/shutl_resource/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shutl/shutl_resource/issues/17/comments","statuses_url":"https://api.github.com/repos/shutl/shutl_resource/statuses/e1e5e19674f9222da23503ea72d1a5070b6f71a3","head":{"label":"shutl:feat/allow-method-override","ref":"feat/allow-method-override","sha":"e1e5e19674f9222da23503ea72d1a5070b6f71a3","user":{"login":"shutl","id":110001,"avatar_url":"https://avatars.githubusercontent.com/u/110001?v=3","gravatar_id":"","url":"https://api.github.com/users/shutl","html_url":"https://github.com/shutl","followers_url":"https://api.github.com/users/shutl/followers","following_url":"https://api.github.com/users/shutl/following{/other_user}","gists_url":"https://api.github.com/users/shutl/gists{/gist_id}","starred_url":"https://api.github.com/users/shutl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shutl/subscriptions","organizations_url":"https://api.github.com/users/shutl/orgs","repos_url":"https://api.github.com/users/shutl/repos","events_url":"https://api.github.com/users/shutl/events{/privacy}","received_events_url":"https://api.github.com/users/shutl/received_events","type":"Organization","site_admin":false},"repo":{"id":4975340,"name":"shutl_resource","full_name":"shutl/shutl_resource","owner":{"login":"shutl","id":110001,"avatar_url":"https://avatars.githubusercontent.com/u/110001?v=3","gravatar_id":"","url":"https://api.github.com/users/shutl","html_url":"https://github.com/shutl","followers_url":"https://api.github.com/users/shutl/followers","following_url":"https://api.github.com/users/shutl/following{/other_user}","gists_url":"https://api.github.com/users/shutl/gists{/gist_id}","starred_url":"https://api.github.com/users/shutl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shutl/subscriptions","organizations_url":"https://api.github.com/users/shutl/orgs","repos_url":"https://api.github.com/users/shutl/repos","events_url":"https://api.github.com/users/shutl/events{/privacy}","received_events_url":"https://api.github.com/users/shutl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shutl/shutl_resource","description":"Shutl Restful resource","fork":false,"url":"https://api.github.com/repos/shutl/shutl_resource","forks_url":"https://api.github.com/repos/shutl/shutl_resource/forks","keys_url":"https://api.github.com/repos/shutl/shutl_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shutl/shutl_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shutl/shutl_resource/teams","hooks_url":"https://api.github.com/repos/shutl/shutl_resource/hooks","issue_events_url":"https://api.github.com/repos/shutl/shutl_resource/issues/events{/number}","events_url":"https://api.github.com/repos/shutl/shutl_resource/events","assignees_url":"https://api.github.com/repos/shutl/shutl_resource/assignees{/user}","branches_url":"https://api.github.com/repos/shutl/shutl_resource/branches{/branch}","tags_url":"https://api.github.com/repos/shutl/shutl_resource/tags","blobs_url":"https://api.github.com/repos/shutl/shutl_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shutl/shutl_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shutl/shutl_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/shutl/shutl_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shutl/shutl_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/shutl/shutl_resource/languages","stargazers_url":"https://api.github.com/repos/shutl/shutl_resource/stargazers","contributors_url":"https://api.github.com/repos/shutl/shutl_resource/contributors","subscribers_url":"https://api.github.com/repos/shutl/shutl_resource/subscribers","subscription_url":"https://api.github.com/repos/shutl/shutl_resource/subscription","commits_url":"https://api.github.com/repos/shutl/shutl_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/shutl/shutl_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/shutl/shutl_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/shutl/shutl_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/shutl/shutl_resource/contents/{+path}","compare_url":"https://api.github.com/repos/shutl/shutl_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shutl/shutl_resource/merges","archive_url":"https://api.github.com/repos/shutl/shutl_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shutl/shutl_resource/downloads","issues_url":"https://api.github.com/repos/shutl/shutl_resource/issues{/number}","pulls_url":"https://api.github.com/repos/shutl/shutl_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/shutl/shutl_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/shutl/shutl_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shutl/shutl_resource/labels{/name}","releases_url":"https://api.github.com/repos/shutl/shutl_resource/releases{/id}","created_at":"2012-07-10T14:39:21Z","updated_at":"2014-12-01T15:34:54Z","pushed_at":"2015-09-11T10:25:50Z","git_url":"git://github.com/shutl/shutl_resource.git","ssh_url":"git@github.com:shutl/shutl_resource.git","clone_url":"https://github.com/shutl/shutl_resource.git","svn_url":"https://github.com/shutl/shutl_resource","homepage":null,"size":941,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"shutl:master","ref":"master","sha":"fada3bd42472458fd9afb079a1869d99806654b9","user":{"login":"shutl","id":110001,"avatar_url":"https://avatars.githubusercontent.com/u/110001?v=3","gravatar_id":"","url":"https://api.github.com/users/shutl","html_url":"https://github.com/shutl","followers_url":"https://api.github.com/users/shutl/followers","following_url":"https://api.github.com/users/shutl/following{/other_user}","gists_url":"https://api.github.com/users/shutl/gists{/gist_id}","starred_url":"https://api.github.com/users/shutl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shutl/subscriptions","organizations_url":"https://api.github.com/users/shutl/orgs","repos_url":"https://api.github.com/users/shutl/repos","events_url":"https://api.github.com/users/shutl/events{/privacy}","received_events_url":"https://api.github.com/users/shutl/received_events","type":"Organization","site_admin":false},"repo":{"id":4975340,"name":"shutl_resource","full_name":"shutl/shutl_resource","owner":{"login":"shutl","id":110001,"avatar_url":"https://avatars.githubusercontent.com/u/110001?v=3","gravatar_id":"","url":"https://api.github.com/users/shutl","html_url":"https://github.com/shutl","followers_url":"https://api.github.com/users/shutl/followers","following_url":"https://api.github.com/users/shutl/following{/other_user}","gists_url":"https://api.github.com/users/shutl/gists{/gist_id}","starred_url":"https://api.github.com/users/shutl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shutl/subscriptions","organizations_url":"https://api.github.com/users/shutl/orgs","repos_url":"https://api.github.com/users/shutl/repos","events_url":"https://api.github.com/users/shutl/events{/privacy}","received_events_url":"https://api.github.com/users/shutl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shutl/shutl_resource","description":"Shutl Restful resource","fork":false,"url":"https://api.github.com/repos/shutl/shutl_resource","forks_url":"https://api.github.com/repos/shutl/shutl_resource/forks","keys_url":"https://api.github.com/repos/shutl/shutl_resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shutl/shutl_resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shutl/shutl_resource/teams","hooks_url":"https://api.github.com/repos/shutl/shutl_resource/hooks","issue_events_url":"https://api.github.com/repos/shutl/shutl_resource/issues/events{/number}","events_url":"https://api.github.com/repos/shutl/shutl_resource/events","assignees_url":"https://api.github.com/repos/shutl/shutl_resource/assignees{/user}","branches_url":"https://api.github.com/repos/shutl/shutl_resource/branches{/branch}","tags_url":"https://api.github.com/repos/shutl/shutl_resource/tags","blobs_url":"https://api.github.com/repos/shutl/shutl_resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shutl/shutl_resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shutl/shutl_resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/shutl/shutl_resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shutl/shutl_resource/statuses/{sha}","languages_url":"https://api.github.com/repos/shutl/shutl_resource/languages","stargazers_url":"https://api.github.com/repos/shutl/shutl_resource/stargazers","contributors_url":"https://api.github.com/repos/shutl/shutl_resource/contributors","subscribers_url":"https://api.github.com/repos/shutl/shutl_resource/subscribers","subscription_url":"https://api.github.com/repos/shutl/shutl_resource/subscription","commits_url":"https://api.github.com/repos/shutl/shutl_resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/shutl/shutl_resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/shutl/shutl_resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/shutl/shutl_resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/shutl/shutl_resource/contents/{+path}","compare_url":"https://api.github.com/repos/shutl/shutl_resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shutl/shutl_resource/merges","archive_url":"https://api.github.com/repos/shutl/shutl_resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shutl/shutl_resource/downloads","issues_url":"https://api.github.com/repos/shutl/shutl_resource/issues{/number}","pulls_url":"https://api.github.com/repos/shutl/shutl_resource/pulls{/number}","milestones_url":"https://api.github.com/repos/shutl/shutl_resource/milestones{/number}","notifications_url":"https://api.github.com/repos/shutl/shutl_resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shutl/shutl_resource/labels{/name}","releases_url":"https://api.github.com/repos/shutl/shutl_resource/releases{/id}","created_at":"2012-07-10T14:39:21Z","updated_at":"2014-12-01T15:34:54Z","pushed_at":"2015-09-11T10:25:50Z","git_url":"git://github.com/shutl/shutl_resource.git","ssh_url":"git@github.com:shutl/shutl_resource.git","clone_url":"https://github.com/shutl/shutl_resource.git","svn_url":"https://github.com/shutl/shutl_resource","homepage":null,"size":941,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shutl/shutl_resource/pulls/17"},"html":{"href":"https://github.com/shutl/shutl_resource/pull/17"},"issue":{"href":"https://api.github.com/repos/shutl/shutl_resource/issues/17"},"comments":{"href":"https://api.github.com/repos/shutl/shutl_resource/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/shutl/shutl_resource/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/shutl/shutl_resource/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shutl/shutl_resource/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/shutl/shutl_resource/statuses/e1e5e19674f9222da23503ea72d1a5070b6f71a3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":10,"changed_files":2}}