{"action":"created","comment":{"url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/comments/59383235","id":59383235,"diff_hunk":"@@ -38,12 +38,55 @@ def create\n   end\n \n   def edit\n+    @bookstore = Bookstore.find(params[:id])\n+    if current_user && current_user == @bookstore.user || current_user.admin\n+      @state_collection = Bookstore::STATES\n+    elsif current_user\n+      flash[:error] = \"You must be the bookstore creator to edit this information\"","path":"app/controllers/bookstores_controller.rb","position":8,"original_position":8,"commit_id":"9f725aa4dac5d5f8bfc70f2051a5be22940c6116","original_commit_id":"9f725aa4dac5d5f8bfc70f2051a5be22940c6116","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [82/80]","created_at":"2016-04-12T14:16:15Z","updated_at":"2016-04-12T14:16:15Z","html_url":"https://github.com/N8Goodman/book_store_app/pull/17#discussion_r59383235","pull_request_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/comments/59383235"},"html":{"href":"https://github.com/N8Goodman/book_store_app/pull/17#discussion_r59383235"},"pull_request":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17","id":66161493,"html_url":"https://github.com/N8Goodman/book_store_app/pull/17","diff_url":"https://github.com/N8Goodman/book_store_app/pull/17.diff","patch_url":"https://github.com/N8Goodman/book_store_app/pull/17.patch","issue_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/17","number":17,"state":"open","locked":false,"title":"(RFR) Add carrier wave and UD for reviews and bookstores","user":{"login":"N8Goodman","id":16329644,"avatar_url":"https://avatars.githubusercontent.com/u/16329644?v=3","gravatar_id":"","url":"https://api.github.com/users/N8Goodman","html_url":"https://github.com/N8Goodman","followers_url":"https://api.github.com/users/N8Goodman/followers","following_url":"https://api.github.com/users/N8Goodman/following{/other_user}","gists_url":"https://api.github.com/users/N8Goodman/gists{/gist_id}","starred_url":"https://api.github.com/users/N8Goodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N8Goodman/subscriptions","organizations_url":"https://api.github.com/users/N8Goodman/orgs","repos_url":"https://api.github.com/users/N8Goodman/repos","events_url":"https://api.github.com/users/N8Goodman/events{/privacy}","received_events_url":"https://api.github.com/users/N8Goodman/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-12T13:55:21Z","updated_at":"2016-04-12T14:16:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c6915a4375d732db09b87e63e8e8c1deb89540d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17/commits","review_comments_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17/comments","review_comment_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/17/comments","statuses_url":"https://api.github.com/repos/N8Goodman/book_store_app/statuses/9f725aa4dac5d5f8bfc70f2051a5be22940c6116","head":{"label":"N8Goodman:add_carrier_wave","ref":"add_carrier_wave","sha":"9f725aa4dac5d5f8bfc70f2051a5be22940c6116","user":{"login":"N8Goodman","id":16329644,"avatar_url":"https://avatars.githubusercontent.com/u/16329644?v=3","gravatar_id":"","url":"https://api.github.com/users/N8Goodman","html_url":"https://github.com/N8Goodman","followers_url":"https://api.github.com/users/N8Goodman/followers","following_url":"https://api.github.com/users/N8Goodman/following{/other_user}","gists_url":"https://api.github.com/users/N8Goodman/gists{/gist_id}","starred_url":"https://api.github.com/users/N8Goodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N8Goodman/subscriptions","organizations_url":"https://api.github.com/users/N8Goodman/orgs","repos_url":"https://api.github.com/users/N8Goodman/repos","events_url":"https://api.github.com/users/N8Goodman/events{/privacy}","received_events_url":"https://api.github.com/users/N8Goodman/received_events","type":"User","site_admin":false},"repo":{"id":55437798,"name":"book_store_app","full_name":"N8Goodman/book_store_app","owner":{"login":"N8Goodman","id":16329644,"avatar_url":"https://avatars.githubusercontent.com/u/16329644?v=3","gravatar_id":"","url":"https://api.github.com/users/N8Goodman","html_url":"https://github.com/N8Goodman","followers_url":"https://api.github.com/users/N8Goodman/followers","following_url":"https://api.github.com/users/N8Goodman/following{/other_user}","gists_url":"https://api.github.com/users/N8Goodman/gists{/gist_id}","starred_url":"https://api.github.com/users/N8Goodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N8Goodman/subscriptions","organizations_url":"https://api.github.com/users/N8Goodman/orgs","repos_url":"https://api.github.com/users/N8Goodman/repos","events_url":"https://api.github.com/users/N8Goodman/events{/privacy}","received_events_url":"https://api.github.com/users/N8Goodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/N8Goodman/book_store_app","description":null,"fork":false,"url":"https://api.github.com/repos/N8Goodman/book_store_app","forks_url":"https://api.github.com/repos/N8Goodman/book_store_app/forks","keys_url":"https://api.github.com/repos/N8Goodman/book_store_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/N8Goodman/book_store_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/N8Goodman/book_store_app/teams","hooks_url":"https://api.github.com/repos/N8Goodman/book_store_app/hooks","issue_events_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/events{/number}","events_url":"https://api.github.com/repos/N8Goodman/book_store_app/events","assignees_url":"https://api.github.com/repos/N8Goodman/book_store_app/assignees{/user}","branches_url":"https://api.github.com/repos/N8Goodman/book_store_app/branches{/branch}","tags_url":"https://api.github.com/repos/N8Goodman/book_store_app/tags","blobs_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/N8Goodman/book_store_app/statuses/{sha}","languages_url":"https://api.github.com/repos/N8Goodman/book_store_app/languages","stargazers_url":"https://api.github.com/repos/N8Goodman/book_store_app/stargazers","contributors_url":"https://api.github.com/repos/N8Goodman/book_store_app/contributors","subscribers_url":"https://api.github.com/repos/N8Goodman/book_store_app/subscribers","subscription_url":"https://api.github.com/repos/N8Goodman/book_store_app/subscription","commits_url":"https://api.github.com/repos/N8Goodman/book_store_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/N8Goodman/book_store_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/N8Goodman/book_store_app/contents/{+path}","compare_url":"https://api.github.com/repos/N8Goodman/book_store_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/N8Goodman/book_store_app/merges","archive_url":"https://api.github.com/repos/N8Goodman/book_store_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/N8Goodman/book_store_app/downloads","issues_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues{/number}","pulls_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls{/number}","milestones_url":"https://api.github.com/repos/N8Goodman/book_store_app/milestones{/number}","notifications_url":"https://api.github.com/repos/N8Goodman/book_store_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/N8Goodman/book_store_app/labels{/name}","releases_url":"https://api.github.com/repos/N8Goodman/book_store_app/releases{/id}","deployments_url":"https://api.github.com/repos/N8Goodman/book_store_app/deployments","created_at":"2016-04-04T19:11:25Z","updated_at":"2016-04-04T19:11:38Z","pushed_at":"2016-04-12T14:16:09Z","git_url":"git://github.com/N8Goodman/book_store_app.git","ssh_url":"git@github.com:N8Goodman/book_store_app.git","clone_url":"https://github.com/N8Goodman/book_store_app.git","svn_url":"https://github.com/N8Goodman/book_store_app","homepage":null,"size":600,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"N8Goodman:master","ref":"master","sha":"ff5f762c62a1318b70bb8e20b90db6d14d02be5a","user":{"login":"N8Goodman","id":16329644,"avatar_url":"https://avatars.githubusercontent.com/u/16329644?v=3","gravatar_id":"","url":"https://api.github.com/users/N8Goodman","html_url":"https://github.com/N8Goodman","followers_url":"https://api.github.com/users/N8Goodman/followers","following_url":"https://api.github.com/users/N8Goodman/following{/other_user}","gists_url":"https://api.github.com/users/N8Goodman/gists{/gist_id}","starred_url":"https://api.github.com/users/N8Goodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N8Goodman/subscriptions","organizations_url":"https://api.github.com/users/N8Goodman/orgs","repos_url":"https://api.github.com/users/N8Goodman/repos","events_url":"https://api.github.com/users/N8Goodman/events{/privacy}","received_events_url":"https://api.github.com/users/N8Goodman/received_events","type":"User","site_admin":false},"repo":{"id":55437798,"name":"book_store_app","full_name":"N8Goodman/book_store_app","owner":{"login":"N8Goodman","id":16329644,"avatar_url":"https://avatars.githubusercontent.com/u/16329644?v=3","gravatar_id":"","url":"https://api.github.com/users/N8Goodman","html_url":"https://github.com/N8Goodman","followers_url":"https://api.github.com/users/N8Goodman/followers","following_url":"https://api.github.com/users/N8Goodman/following{/other_user}","gists_url":"https://api.github.com/users/N8Goodman/gists{/gist_id}","starred_url":"https://api.github.com/users/N8Goodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N8Goodman/subscriptions","organizations_url":"https://api.github.com/users/N8Goodman/orgs","repos_url":"https://api.github.com/users/N8Goodman/repos","events_url":"https://api.github.com/users/N8Goodman/events{/privacy}","received_events_url":"https://api.github.com/users/N8Goodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/N8Goodman/book_store_app","description":null,"fork":false,"url":"https://api.github.com/repos/N8Goodman/book_store_app","forks_url":"https://api.github.com/repos/N8Goodman/book_store_app/forks","keys_url":"https://api.github.com/repos/N8Goodman/book_store_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/N8Goodman/book_store_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/N8Goodman/book_store_app/teams","hooks_url":"https://api.github.com/repos/N8Goodman/book_store_app/hooks","issue_events_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/events{/number}","events_url":"https://api.github.com/repos/N8Goodman/book_store_app/events","assignees_url":"https://api.github.com/repos/N8Goodman/book_store_app/assignees{/user}","branches_url":"https://api.github.com/repos/N8Goodman/book_store_app/branches{/branch}","tags_url":"https://api.github.com/repos/N8Goodman/book_store_app/tags","blobs_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/N8Goodman/book_store_app/statuses/{sha}","languages_url":"https://api.github.com/repos/N8Goodman/book_store_app/languages","stargazers_url":"https://api.github.com/repos/N8Goodman/book_store_app/stargazers","contributors_url":"https://api.github.com/repos/N8Goodman/book_store_app/contributors","subscribers_url":"https://api.github.com/repos/N8Goodman/book_store_app/subscribers","subscription_url":"https://api.github.com/repos/N8Goodman/book_store_app/subscription","commits_url":"https://api.github.com/repos/N8Goodman/book_store_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/N8Goodman/book_store_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/N8Goodman/book_store_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/N8Goodman/book_store_app/contents/{+path}","compare_url":"https://api.github.com/repos/N8Goodman/book_store_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/N8Goodman/book_store_app/merges","archive_url":"https://api.github.com/repos/N8Goodman/book_store_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/N8Goodman/book_store_app/downloads","issues_url":"https://api.github.com/repos/N8Goodman/book_store_app/issues{/number}","pulls_url":"https://api.github.com/repos/N8Goodman/book_store_app/pulls{/number}","milestones_url":"https://api.github.com/repos/N8Goodman/book_store_app/milestones{/number}","notifications_url":"https://api.github.com/repos/N8Goodman/book_store_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/N8Goodman/book_store_app/labels{/name}","releases_url":"https://api.github.com/repos/N8Goodman/book_store_app/releases{/id}","deployments_url":"https://api.github.com/repos/N8Goodman/book_store_app/deployments","created_at":"2016-04-04T19:11:25Z","updated_at":"2016-04-04T19:11:38Z","pushed_at":"2016-04-12T14:16:09Z","git_url":"git://github.com/N8Goodman/book_store_app.git","ssh_url":"git@github.com:N8Goodman/book_store_app.git","clone_url":"https://github.com/N8Goodman/book_store_app.git","svn_url":"https://github.com/N8Goodman/book_store_app","homepage":null,"size":600,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17"},"html":{"href":"https://github.com/N8Goodman/book_store_app/pull/17"},"issue":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/issues/17"},"comments":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/N8Goodman/book_store_app/statuses/9f725aa4dac5d5f8bfc70f2051a5be22940c6116"}}}}