{"action":"created","comment":{"url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/comments/228272943","pull_request_review_id":168508792,"id":228272943,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODI3Mjk0Mw==","diff_hunk":"@@ -20,6 +20,34 @@ def create\n     end\n   end\n \n+  def edit\n+    @mural = Mural.find(params[:id])\n+    @user = User.find(@mural.user_id)\n+  end\n+\n+  def update\n+    @mural = Mural.find(params[:id])\n+    if @mural.update_attributes(mural_params)\n+      redirect_to \"/users/#{@mural.user_id}\", notice: \"Mural was edited successfully\"\n+    else\n+      render :edit\n+    end\n+  end\n+\n+  def destroy\n+    @murals = Mural.all","path":"app/controllers/murals_controller.rb","position":19,"original_position":19,"commit_id":"2815a913d7e8b3597f1d911a824f492e6b4d869f","original_commit_id":"2815a913d7e8b3597f1d911a824f492e6b4d869f","user":{"login":"nwalberts","id":16418059,"node_id":"MDQ6VXNlcjE2NDE4MDU5","avatar_url":"https://avatars2.githubusercontent.com/u/16418059?v=4","gravatar_id":"","url":"https://api.github.com/users/nwalberts","html_url":"https://github.com/nwalberts","followers_url":"https://api.github.com/users/nwalberts/followers","following_url":"https://api.github.com/users/nwalberts/following{/other_user}","gists_url":"https://api.github.com/users/nwalberts/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalberts/subscriptions","organizations_url":"https://api.github.com/users/nwalberts/orgs","repos_url":"https://api.github.com/users/nwalberts/repos","events_url":"https://api.github.com/users/nwalberts/events{/privacy}","received_events_url":"https://api.github.com/users/nwalberts/received_events","type":"User","site_admin":false},"body":"this line is unecessary","created_at":"2018-10-25T17:51:15Z","updated_at":"2018-10-25T17:59:31Z","html_url":"https://github.com/MrBlooKangaroo/muralis/pull/13#discussion_r228272943","pull_request_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/comments/228272943"},"html":{"href":"https://github.com/MrBlooKangaroo/muralis/pull/13#discussion_r228272943"},"pull_request":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13","id":225763913,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NzYzOTEz","html_url":"https://github.com/MrBlooKangaroo/muralis/pull/13","diff_url":"https://github.com/MrBlooKangaroo/muralis/pull/13.diff","patch_url":"https://github.com/MrBlooKangaroo/muralis/pull/13.patch","issue_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/13","number":13,"state":"open","locked":false,"title":"Create admin account","user":{"login":"mrjoshdev","id":38870901,"node_id":"MDQ6VXNlcjM4ODcwOTAx","avatar_url":"https://avatars3.githubusercontent.com/u/38870901?v=4","gravatar_id":"","url":"https://api.github.com/users/mrjoshdev","html_url":"https://github.com/mrjoshdev","followers_url":"https://api.github.com/users/mrjoshdev/followers","following_url":"https://api.github.com/users/mrjoshdev/following{/other_user}","gists_url":"https://api.github.com/users/mrjoshdev/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjoshdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjoshdev/subscriptions","organizations_url":"https://api.github.com/users/mrjoshdev/orgs","repos_url":"https://api.github.com/users/mrjoshdev/repos","events_url":"https://api.github.com/users/mrjoshdev/events{/privacy}","received_events_url":"https://api.github.com/users/mrjoshdev/received_events","type":"User","site_admin":false},"body":"Admin privileges can be created by adding a member to the user db that has the role = \"admin\".  When signed in as an admin the user can upload, edit and delete any mural on any user's show page.","created_at":"2018-10-25T13:41:33Z","updated_at":"2018-10-25T17:59:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"053e6d3095dc2a94d80a4aa3c70028b9a1a90606","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13/commits","review_comments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13/comments","review_comment_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/13/comments","statuses_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/statuses/2815a913d7e8b3597f1d911a824f492e6b4d869f","head":{"label":"MrBlooKangaroo:create-admin-account","ref":"create-admin-account","sha":"2815a913d7e8b3597f1d911a824f492e6b4d869f","user":{"login":"MrBlooKangaroo","id":43078660,"node_id":"MDQ6VXNlcjQzMDc4NjYw","avatar_url":"https://avatars1.githubusercontent.com/u/43078660?v=4","gravatar_id":"","url":"https://api.github.com/users/MrBlooKangaroo","html_url":"https://github.com/MrBlooKangaroo","followers_url":"https://api.github.com/users/MrBlooKangaroo/followers","following_url":"https://api.github.com/users/MrBlooKangaroo/following{/other_user}","gists_url":"https://api.github.com/users/MrBlooKangaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBlooKangaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBlooKangaroo/subscriptions","organizations_url":"https://api.github.com/users/MrBlooKangaroo/orgs","repos_url":"https://api.github.com/users/MrBlooKangaroo/repos","events_url":"https://api.github.com/users/MrBlooKangaroo/events{/privacy}","received_events_url":"https://api.github.com/users/MrBlooKangaroo/received_events","type":"User","site_admin":false},"repo":{"id":153159725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMxNTk3MjU=","name":"muralis","full_name":"MrBlooKangaroo/muralis","private":false,"owner":{"login":"MrBlooKangaroo","id":43078660,"node_id":"MDQ6VXNlcjQzMDc4NjYw","avatar_url":"https://avatars1.githubusercontent.com/u/43078660?v=4","gravatar_id":"","url":"https://api.github.com/users/MrBlooKangaroo","html_url":"https://github.com/MrBlooKangaroo","followers_url":"https://api.github.com/users/MrBlooKangaroo/followers","following_url":"https://api.github.com/users/MrBlooKangaroo/following{/other_user}","gists_url":"https://api.github.com/users/MrBlooKangaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBlooKangaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBlooKangaroo/subscriptions","organizations_url":"https://api.github.com/users/MrBlooKangaroo/orgs","repos_url":"https://api.github.com/users/MrBlooKangaroo/repos","events_url":"https://api.github.com/users/MrBlooKangaroo/events{/privacy}","received_events_url":"https://api.github.com/users/MrBlooKangaroo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MrBlooKangaroo/muralis","description":"the definitive platform for cataloguing and reviewing urban art and public graffiti pieces","fork":false,"url":"https://api.github.com/repos/MrBlooKangaroo/muralis","forks_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/forks","keys_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/teams","hooks_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/hooks","issue_events_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/events{/number}","events_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/events","assignees_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/assignees{/user}","branches_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/branches{/branch}","tags_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/tags","blobs_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/statuses/{sha}","languages_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/languages","stargazers_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/stargazers","contributors_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/contributors","subscribers_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/subscribers","subscription_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/subscription","commits_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/contents/{+path}","compare_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/merges","archive_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/downloads","issues_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues{/number}","pulls_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls{/number}","milestones_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/milestones{/number}","notifications_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/labels{/name}","releases_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/releases{/id}","deployments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/deployments","created_at":"2018-10-15T18:08:30Z","updated_at":"2018-10-24T19:13:10Z","pushed_at":"2018-10-25T17:21:14Z","git_url":"git://github.com/MrBlooKangaroo/muralis.git","ssh_url":"git@github.com:MrBlooKangaroo/muralis.git","clone_url":"https://github.com/MrBlooKangaroo/muralis.git","svn_url":"https://github.com/MrBlooKangaroo/muralis","homepage":null,"size":22620,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"MrBlooKangaroo:master","ref":"master","sha":"50ff23dfd1a655bba3401b5797952a03469f1e18","user":{"login":"MrBlooKangaroo","id":43078660,"node_id":"MDQ6VXNlcjQzMDc4NjYw","avatar_url":"https://avatars1.githubusercontent.com/u/43078660?v=4","gravatar_id":"","url":"https://api.github.com/users/MrBlooKangaroo","html_url":"https://github.com/MrBlooKangaroo","followers_url":"https://api.github.com/users/MrBlooKangaroo/followers","following_url":"https://api.github.com/users/MrBlooKangaroo/following{/other_user}","gists_url":"https://api.github.com/users/MrBlooKangaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBlooKangaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBlooKangaroo/subscriptions","organizations_url":"https://api.github.com/users/MrBlooKangaroo/orgs","repos_url":"https://api.github.com/users/MrBlooKangaroo/repos","events_url":"https://api.github.com/users/MrBlooKangaroo/events{/privacy}","received_events_url":"https://api.github.com/users/MrBlooKangaroo/received_events","type":"User","site_admin":false},"repo":{"id":153159725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMxNTk3MjU=","name":"muralis","full_name":"MrBlooKangaroo/muralis","private":false,"owner":{"login":"MrBlooKangaroo","id":43078660,"node_id":"MDQ6VXNlcjQzMDc4NjYw","avatar_url":"https://avatars1.githubusercontent.com/u/43078660?v=4","gravatar_id":"","url":"https://api.github.com/users/MrBlooKangaroo","html_url":"https://github.com/MrBlooKangaroo","followers_url":"https://api.github.com/users/MrBlooKangaroo/followers","following_url":"https://api.github.com/users/MrBlooKangaroo/following{/other_user}","gists_url":"https://api.github.com/users/MrBlooKangaroo/gists{/gist_id}","starred_url":"https://api.github.com/users/MrBlooKangaroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrBlooKangaroo/subscriptions","organizations_url":"https://api.github.com/users/MrBlooKangaroo/orgs","repos_url":"https://api.github.com/users/MrBlooKangaroo/repos","events_url":"https://api.github.com/users/MrBlooKangaroo/events{/privacy}","received_events_url":"https://api.github.com/users/MrBlooKangaroo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MrBlooKangaroo/muralis","description":"the definitive platform for cataloguing and reviewing urban art and public graffiti pieces","fork":false,"url":"https://api.github.com/repos/MrBlooKangaroo/muralis","forks_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/forks","keys_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/teams","hooks_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/hooks","issue_events_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/events{/number}","events_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/events","assignees_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/assignees{/user}","branches_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/branches{/branch}","tags_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/tags","blobs_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/statuses/{sha}","languages_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/languages","stargazers_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/stargazers","contributors_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/contributors","subscribers_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/subscribers","subscription_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/subscription","commits_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/contents/{+path}","compare_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/merges","archive_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/downloads","issues_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues{/number}","pulls_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls{/number}","milestones_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/milestones{/number}","notifications_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/labels{/name}","releases_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/releases{/id}","deployments_url":"https://api.github.com/repos/MrBlooKangaroo/muralis/deployments","created_at":"2018-10-15T18:08:30Z","updated_at":"2018-10-24T19:13:10Z","pushed_at":"2018-10-25T17:21:14Z","git_url":"git://github.com/MrBlooKangaroo/muralis.git","ssh_url":"git@github.com:MrBlooKangaroo/muralis.git","clone_url":"https://github.com/MrBlooKangaroo/muralis.git","svn_url":"https://github.com/MrBlooKangaroo/muralis","homepage":null,"size":22620,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13"},"html":{"href":"https://github.com/MrBlooKangaroo/muralis/pull/13"},"issue":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/13"},"comments":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/MrBlooKangaroo/muralis/statuses/2815a913d7e8b3597f1d911a824f492e6b4d869f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nwalberts"}}