{"action":"created","comment":{"url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/comments/38926181","id":38926181,"diff_hunk":"@@ -11,12 +11,15 @@ def call\n \n   private\n \n+  attr_reader :product, :size\n+\n   def get_img_url\n-    if @product[:img_id].present?\n-      return \"/upload/img/#{@size}/#{@product[:img_id]}.png\"\n+    if product[:img_product_id].present?\n+      return \"#{ENV['ROOT_URL']}#{product.img_product.picture.url(\"img#{size}\")}\"","path":"app/services/get_img_url.rb","position":10,"original_position":10,"commit_id":"9ffb6f3d80ad07a4145e495980407088534bd696","original_commit_id":"d4ccf365163882fc4743c91d376becd40028c0ef","user":{"login":"flypm82","id":5735686,"avatar_url":"https://avatars.githubusercontent.com/u/5735686?v=3","gravatar_id":"","url":"https://api.github.com/users/flypm82","html_url":"https://github.com/flypm82","followers_url":"https://api.github.com/users/flypm82/followers","following_url":"https://api.github.com/users/flypm82/following{/other_user}","gists_url":"https://api.github.com/users/flypm82/gists{/gist_id}","starred_url":"https://api.github.com/users/flypm82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flypm82/subscriptions","organizations_url":"https://api.github.com/users/flypm82/orgs","repos_url":"https://api.github.com/users/flypm82/repos","events_url":"https://api.github.com/users/flypm82/events{/privacy}","received_events_url":"https://api.github.com/users/flypm82/received_events","type":"User","site_admin":false},"body":"no to chyba w jakiejs metodzie powinno byc\r\ni `ENV` przenies do `Settings`","created_at":"2015-09-08T13:42:41Z","updated_at":"2015-09-08T13:42:41Z","html_url":"https://github.com/ck-cyberkom/ck-amour/pull/67#discussion_r38926181","pull_request_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/comments/38926181"},"html":{"href":"https://github.com/ck-cyberkom/ck-amour/pull/67#discussion_r38926181"},"pull_request":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67","id":44405351,"html_url":"https://github.com/ck-cyberkom/ck-amour/pull/67","diff_url":"https://github.com/ck-cyberkom/ck-amour/pull/67.diff","patch_url":"https://github.com/ck-cyberkom/ck-amour/pull/67.patch","issue_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/67","number":67,"state":"open","locked":false,"title":"Add photo gallery","user":{"login":"rsuchomski","id":9548575,"avatar_url":"https://avatars.githubusercontent.com/u/9548575?v=3","gravatar_id":"","url":"https://api.github.com/users/rsuchomski","html_url":"https://github.com/rsuchomski","followers_url":"https://api.github.com/users/rsuchomski/followers","following_url":"https://api.github.com/users/rsuchomski/following{/other_user}","gists_url":"https://api.github.com/users/rsuchomski/gists{/gist_id}","starred_url":"https://api.github.com/users/rsuchomski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsuchomski/subscriptions","organizations_url":"https://api.github.com/users/rsuchomski/orgs","repos_url":"https://api.github.com/users/rsuchomski/repos","events_url":"https://api.github.com/users/rsuchomski/events{/privacy}","received_events_url":"https://api.github.com/users/rsuchomski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-08T08:35:30Z","updated_at":"2015-09-08T13:42:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89c9bba565fb8c5ae7d60a04183d6c039a0d8340","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67/commits","review_comments_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67/comments","review_comment_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/67/comments","statuses_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/statuses/9ffb6f3d80ad07a4145e495980407088534bd696","head":{"label":"ck-cyberkom:add-photo-gallery","ref":"add-photo-gallery","sha":"9ffb6f3d80ad07a4145e495980407088534bd696","user":{"login":"ck-cyberkom","id":11848293,"avatar_url":"https://avatars.githubusercontent.com/u/11848293?v=3","gravatar_id":"","url":"https://api.github.com/users/ck-cyberkom","html_url":"https://github.com/ck-cyberkom","followers_url":"https://api.github.com/users/ck-cyberkom/followers","following_url":"https://api.github.com/users/ck-cyberkom/following{/other_user}","gists_url":"https://api.github.com/users/ck-cyberkom/gists{/gist_id}","starred_url":"https://api.github.com/users/ck-cyberkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ck-cyberkom/subscriptions","organizations_url":"https://api.github.com/users/ck-cyberkom/orgs","repos_url":"https://api.github.com/users/ck-cyberkom/repos","events_url":"https://api.github.com/users/ck-cyberkom/events{/privacy}","received_events_url":"https://api.github.com/users/ck-cyberkom/received_events","type":"Organization","site_admin":false},"repo":{"id":33931316,"name":"ck-amour","full_name":"ck-cyberkom/ck-amour","owner":{"login":"ck-cyberkom","id":11848293,"avatar_url":"https://avatars.githubusercontent.com/u/11848293?v=3","gravatar_id":"","url":"https://api.github.com/users/ck-cyberkom","html_url":"https://github.com/ck-cyberkom","followers_url":"https://api.github.com/users/ck-cyberkom/followers","following_url":"https://api.github.com/users/ck-cyberkom/following{/other_user}","gists_url":"https://api.github.com/users/ck-cyberkom/gists{/gist_id}","starred_url":"https://api.github.com/users/ck-cyberkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ck-cyberkom/subscriptions","organizations_url":"https://api.github.com/users/ck-cyberkom/orgs","repos_url":"https://api.github.com/users/ck-cyberkom/repos","events_url":"https://api.github.com/users/ck-cyberkom/events{/privacy}","received_events_url":"https://api.github.com/users/ck-cyberkom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ck-cyberkom/ck-amour","description":"nav","fork":false,"url":"https://api.github.com/repos/ck-cyberkom/ck-amour","forks_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/forks","keys_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/teams","hooks_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/hooks","issue_events_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/events{/number}","events_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/events","assignees_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/assignees{/user}","branches_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/branches{/branch}","tags_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/tags","blobs_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/refs{/sha}","trees_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/statuses/{sha}","languages_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/languages","stargazers_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/stargazers","contributors_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/contributors","subscribers_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/subscribers","subscription_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/subscription","commits_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/commits{/sha}","git_commits_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/commits{/sha}","comments_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/comments{/number}","issue_comment_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/comments{/number}","contents_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/contents/{+path}","compare_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/merges","archive_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/downloads","issues_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues{/number}","pulls_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls{/number}","milestones_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/milestones{/number}","notifications_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/labels{/name}","releases_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/releases{/id}","created_at":"2015-04-14T12:49:30Z","updated_at":"2015-09-03T10:56:32Z","pushed_at":"2015-09-08T13:30:53Z","git_url":"git://github.com/ck-cyberkom/ck-amour.git","ssh_url":"git@github.com:ck-cyberkom/ck-amour.git","clone_url":"https://github.com/ck-cyberkom/ck-amour.git","svn_url":"https://github.com/ck-cyberkom/ck-amour","homepage":"","size":1374,"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":"ck-cyberkom:master","ref":"master","sha":"5e5aecf401554ef698163c52e810298d7ad8dfbd","user":{"login":"ck-cyberkom","id":11848293,"avatar_url":"https://avatars.githubusercontent.com/u/11848293?v=3","gravatar_id":"","url":"https://api.github.com/users/ck-cyberkom","html_url":"https://github.com/ck-cyberkom","followers_url":"https://api.github.com/users/ck-cyberkom/followers","following_url":"https://api.github.com/users/ck-cyberkom/following{/other_user}","gists_url":"https://api.github.com/users/ck-cyberkom/gists{/gist_id}","starred_url":"https://api.github.com/users/ck-cyberkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ck-cyberkom/subscriptions","organizations_url":"https://api.github.com/users/ck-cyberkom/orgs","repos_url":"https://api.github.com/users/ck-cyberkom/repos","events_url":"https://api.github.com/users/ck-cyberkom/events{/privacy}","received_events_url":"https://api.github.com/users/ck-cyberkom/received_events","type":"Organization","site_admin":false},"repo":{"id":33931316,"name":"ck-amour","full_name":"ck-cyberkom/ck-amour","owner":{"login":"ck-cyberkom","id":11848293,"avatar_url":"https://avatars.githubusercontent.com/u/11848293?v=3","gravatar_id":"","url":"https://api.github.com/users/ck-cyberkom","html_url":"https://github.com/ck-cyberkom","followers_url":"https://api.github.com/users/ck-cyberkom/followers","following_url":"https://api.github.com/users/ck-cyberkom/following{/other_user}","gists_url":"https://api.github.com/users/ck-cyberkom/gists{/gist_id}","starred_url":"https://api.github.com/users/ck-cyberkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ck-cyberkom/subscriptions","organizations_url":"https://api.github.com/users/ck-cyberkom/orgs","repos_url":"https://api.github.com/users/ck-cyberkom/repos","events_url":"https://api.github.com/users/ck-cyberkom/events{/privacy}","received_events_url":"https://api.github.com/users/ck-cyberkom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ck-cyberkom/ck-amour","description":"nav","fork":false,"url":"https://api.github.com/repos/ck-cyberkom/ck-amour","forks_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/forks","keys_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/teams","hooks_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/hooks","issue_events_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/events{/number}","events_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/events","assignees_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/assignees{/user}","branches_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/branches{/branch}","tags_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/tags","blobs_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/refs{/sha}","trees_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/statuses/{sha}","languages_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/languages","stargazers_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/stargazers","contributors_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/contributors","subscribers_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/subscribers","subscription_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/subscription","commits_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/commits{/sha}","git_commits_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/git/commits{/sha}","comments_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/comments{/number}","issue_comment_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/comments{/number}","contents_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/contents/{+path}","compare_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/merges","archive_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/downloads","issues_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues{/number}","pulls_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls{/number}","milestones_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/milestones{/number}","notifications_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/labels{/name}","releases_url":"https://api.github.com/repos/ck-cyberkom/ck-amour/releases{/id}","created_at":"2015-04-14T12:49:30Z","updated_at":"2015-09-03T10:56:32Z","pushed_at":"2015-09-08T13:30:53Z","git_url":"git://github.com/ck-cyberkom/ck-amour.git","ssh_url":"git@github.com:ck-cyberkom/ck-amour.git","clone_url":"https://github.com/ck-cyberkom/ck-amour.git","svn_url":"https://github.com/ck-cyberkom/ck-amour","homepage":"","size":1374,"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/ck-cyberkom/ck-amour/pulls/67"},"html":{"href":"https://github.com/ck-cyberkom/ck-amour/pull/67"},"issue":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/67"},"comments":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/ck-cyberkom/ck-amour/statuses/9ffb6f3d80ad07a4145e495980407088534bd696"}}}}