{"action":"created","comment":{"url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/comments/131426559","pull_request_review_id":54409541,"id":131426559,"diff_hunk":"@@ -11,6 +11,22 @@ def self.by_gallery(gallery_name)\n     where(gallery_name: gallery_name)\n   end\n \n+  def url\n+    if (self.portfolio_image_id)\n+      Refile::attachment_url(self, :portfolio_image_small, format: \"jpg\", filename: \"#{self.filename}_large\")\n+    else\n+      shootproof_url_large\n+    end\n+  end\n+\n+  def url_small\n+    if (self.portfolio_image_id)","path":"app/models/portfolio_image.rb","position":13,"original_position":13,"commit_id":"be5812669b99c274215ffa07f3ed414476078a40","original_commit_id":"be5812669b99c274215ffa07f3ed414476078a40","user":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"body":"Redundant `self` detected.","created_at":"2017-08-04T16:07:16Z","updated_at":"2017-08-04T16:07:16Z","html_url":"https://github.com/ninjapanzer/savvyshots_rails/pull/113#discussion_r131426559","pull_request_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/comments/131426559"},"html":{"href":"https://github.com/ninjapanzer/savvyshots_rails/pull/113#discussion_r131426559"},"pull_request":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113","id":134200006,"html_url":"https://github.com/ninjapanzer/savvyshots_rails/pull/113","diff_url":"https://github.com/ninjapanzer/savvyshots_rails/pull/113.diff","patch_url":"https://github.com/ninjapanzer/savvyshots_rails/pull/113.patch","issue_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/113","number":113,"state":"open","locked":false,"title":"Portfolio Image Shootproof Integration","user":{"login":"garyanewsome","id":13909325,"avatar_url":"https://avatars1.githubusercontent.com/u/13909325?v=4","gravatar_id":"","url":"https://api.github.com/users/garyanewsome","html_url":"https://github.com/garyanewsome","followers_url":"https://api.github.com/users/garyanewsome/followers","following_url":"https://api.github.com/users/garyanewsome/following{/other_user}","gists_url":"https://api.github.com/users/garyanewsome/gists{/gist_id}","starred_url":"https://api.github.com/users/garyanewsome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyanewsome/subscriptions","organizations_url":"https://api.github.com/users/garyanewsome/orgs","repos_url":"https://api.github.com/users/garyanewsome/repos","events_url":"https://api.github.com/users/garyanewsome/events{/privacy}","received_events_url":"https://api.github.com/users/garyanewsome/received_events","type":"User","site_admin":false},"body":"###### Portfolio Images Shootproof Integration\r\n\r\nAllows for images from the database or uploaded from shootproof to be able to be displayed in the galleries.\r\n\r\nIncorporate shootproof into the existing form to replace the database/upload option.\r\n\r\nWILL need cleaned up, some `console.log` statements removed and some sort of flex box added to the scrollable shootproof div. Which create its own issue in constraining the images, the expanded region is constrained by the same dimensions.\r\n\r\n###### Needs\r\n- code review\r\n- clean up\r\n- approval\r\n- deployed \\0/","created_at":"2017-08-04T16:03:15Z","updated_at":"2017-08-04T16:07:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69b396884a2c0d6351cbfb6b7321e314e00210f1","assignee":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"assignees":[{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113/commits","review_comments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113/comments","review_comment_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/113/comments","statuses_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/statuses/be5812669b99c274215ffa07f3ed414476078a40","head":{"label":"ninjapanzer:gan/db_or_shootproof_image","ref":"gan/db_or_shootproof_image","sha":"be5812669b99c274215ffa07f3ed414476078a40","user":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"repo":{"id":39544570,"name":"savvyshots_rails","full_name":"ninjapanzer/savvyshots_rails","owner":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ninjapanzer/savvyshots_rails","description":"Savvy Shots Photography Site","fork":false,"url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails","forks_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/forks","keys_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/teams","hooks_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/hooks","issue_events_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/events{/number}","events_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/events","assignees_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/assignees{/user}","branches_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/branches{/branch}","tags_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/tags","blobs_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/languages","stargazers_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/stargazers","contributors_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/contributors","subscribers_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/subscribers","subscription_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/subscription","commits_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/contents/{+path}","compare_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/merges","archive_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/downloads","issues_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues{/number}","pulls_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/labels{/name}","releases_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/releases{/id}","deployments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/deployments","created_at":"2015-07-23T03:52:55Z","updated_at":"2017-05-16T18:07:27Z","pushed_at":"2017-08-04T16:03:15Z","git_url":"git://github.com/ninjapanzer/savvyshots_rails.git","ssh_url":"git@github.com:ninjapanzer/savvyshots_rails.git","clone_url":"https://github.com/ninjapanzer/savvyshots_rails.git","svn_url":"https://github.com/ninjapanzer/savvyshots_rails","homepage":"https://savvyshots.photography","size":99024,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"ninjapanzer:master","ref":"master","sha":"3550f990a2cb752e40e0c139f03e13dc2dcfe567","user":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"repo":{"id":39544570,"name":"savvyshots_rails","full_name":"ninjapanzer/savvyshots_rails","owner":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars2.githubusercontent.com/u/159591?v=4","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ninjapanzer/savvyshots_rails","description":"Savvy Shots Photography Site","fork":false,"url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails","forks_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/forks","keys_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/teams","hooks_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/hooks","issue_events_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/events{/number}","events_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/events","assignees_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/assignees{/user}","branches_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/branches{/branch}","tags_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/tags","blobs_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/languages","stargazers_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/stargazers","contributors_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/contributors","subscribers_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/subscribers","subscription_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/subscription","commits_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/contents/{+path}","compare_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/merges","archive_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/downloads","issues_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues{/number}","pulls_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/labels{/name}","releases_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/releases{/id}","deployments_url":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/deployments","created_at":"2015-07-23T03:52:55Z","updated_at":"2017-05-16T18:07:27Z","pushed_at":"2017-08-04T16:03:15Z","git_url":"git://github.com/ninjapanzer/savvyshots_rails.git","ssh_url":"git@github.com:ninjapanzer/savvyshots_rails.git","clone_url":"https://github.com/ninjapanzer/savvyshots_rails.git","svn_url":"https://github.com/ninjapanzer/savvyshots_rails","homepage":"https://savvyshots.photography","size":99024,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113"},"html":{"href":"https://github.com/ninjapanzer/savvyshots_rails/pull/113"},"issue":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/113"},"comments":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/ninjapanzer/savvyshots_rails/statuses/be5812669b99c274215ffa07f3ed414476078a40"}}}}
{"actor":{"display_login":"ninjapanzer"}}