{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/comments/54653621","id":54653621,"diff_hunk":"@@ -18,5 +19,17 @@ def create\n     end\n   end\n \n+  def destroy\n+    @image.destroy\n+    flash[:success] = 'Image URL destroyed!'","path":"app/controllers/images_controller.rb","position":21,"original_position":21,"commit_id":"ca8d4bf7d2504a525094b9178d19f55d092f549e","original_commit_id":"ca8d4bf7d2504a525094b9178d19f55d092f549e","user":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"body":"Minor: Consider the more generic message `'Image destroyed!`","created_at":"2016-03-01T23:20:05Z","updated_at":"2016-03-01T23:20:05Z","html_url":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37#discussion_r54653621","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/comments/54653621"},"html":{"href":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37#discussion_r54653621"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37","id":61114207,"html_url":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37","diff_url":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37.diff","patch_url":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/37","number":37,"state":"open","locked":false,"title":"Delete image","user":{"login":"erikperkins","id":9537012,"avatar_url":"https://avatars.githubusercontent.com/u/9537012?v=3","gravatar_id":"","url":"https://api.github.com/users/erikperkins","html_url":"https://github.com/erikperkins","followers_url":"https://api.github.com/users/erikperkins/followers","following_url":"https://api.github.com/users/erikperkins/following{/other_user}","gists_url":"https://api.github.com/users/erikperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/erikperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikperkins/subscriptions","organizations_url":"https://api.github.com/users/erikperkins/orgs","repos_url":"https://api.github.com/users/erikperkins/repos","events_url":"https://api.github.com/users/erikperkins/events{/privacy}","received_events_url":"https://api.github.com/users/erikperkins/received_events","type":"User","site_admin":false},"body":"Fixes issue #5\r\n\r\nImages can be removed from the app, with a warning prompt for the user.","created_at":"2016-02-29T17:32:37Z","updated_at":"2016-03-01T23:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e43d90fb7a8ee687752bc35a7c1e007e538895b8","assignee":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/37/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/statuses/ca8d4bf7d2504a525094b9178d19f55d092f549e","head":{"label":"AppFolioOnboarding:delete_image","ref":"delete_image","sha":"ca8d4bf7d2504a525094b9178d19f55d092f549e","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":51942506,"name":"perkins_eidolon","full_name":"AppFolioOnboarding/perkins_eidolon","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/perkins_eidolon","description":"Image sharing app","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon","forks_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/deployments","created_at":"2016-02-17T17:48:50Z","updated_at":"2016-02-17T18:12:10Z","pushed_at":"2016-03-01T22:42:41Z","git_url":"git://github.com/AppFolioOnboarding/perkins_eidolon.git","ssh_url":"git@github.com:AppFolioOnboarding/perkins_eidolon.git","clone_url":"https://github.com/AppFolioOnboarding/perkins_eidolon.git","svn_url":"https://github.com/AppFolioOnboarding/perkins_eidolon","homepage":null,"size":411,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"550aac3ed12b73f6a63a913bfe725a99689ef6b0","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":51942506,"name":"perkins_eidolon","full_name":"AppFolioOnboarding/perkins_eidolon","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/perkins_eidolon","description":"Image sharing app","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon","forks_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/deployments","created_at":"2016-02-17T17:48:50Z","updated_at":"2016-02-17T18:12:10Z","pushed_at":"2016-03-01T22:42:41Z","git_url":"git://github.com/AppFolioOnboarding/perkins_eidolon.git","ssh_url":"git@github.com:AppFolioOnboarding/perkins_eidolon.git","clone_url":"https://github.com/AppFolioOnboarding/perkins_eidolon.git","svn_url":"https://github.com/AppFolioOnboarding/perkins_eidolon","homepage":null,"size":411,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":24,"forks":0,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37"},"html":{"href":"https://github.com/AppFolioOnboarding/perkins_eidolon/pull/37"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/37"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/perkins_eidolon/statuses/ca8d4bf7d2504a525094b9178d19f55d092f549e"}}}}