{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/book2/pulls/comments/72178865","id":72178865,"diff_hunk":"@@ -9,4 +9,32 @@ class M::Book < ActiveRecord::Base\n   def requested_by? user\n     PurchaseRequest.by_user_book(user.id, self.id).present?\n   end\n+\n+  def isbn10_to_13\n+    return self.isbn if self.isbn.length != 10\n+    isbn13 = \"978#{self.isbn[0..8]}\"","path":"app/models/m/book.rb","position":null,"original_position":7,"commit_id":"963c17dd7d73589e0924ce3ea6ee4a974fa28c90","original_commit_id":"cfd16d5b6b3638eed19602801a2d2dba3be3f8e9","user":{"login":"ynarasak","id":10795621,"avatar_url":"https://avatars.githubusercontent.com/u/10795621?v=3","gravatar_id":"","url":"https://api.github.com/users/ynarasak","html_url":"https://github.com/ynarasak","followers_url":"https://api.github.com/users/ynarasak/followers","following_url":"https://api.github.com/users/ynarasak/following{/other_user}","gists_url":"https://api.github.com/users/ynarasak/gists{/gist_id}","starred_url":"https://api.github.com/users/ynarasak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynarasak/subscriptions","organizations_url":"https://api.github.com/users/ynarasak/orgs","repos_url":"https://api.github.com/users/ynarasak/repos","events_url":"https://api.github.com/users/ynarasak/events{/privacy}","received_events_url":"https://api.github.com/users/ynarasak/received_events","type":"User","site_admin":false},"body":"変数名を修正いたしました。","created_at":"2016-07-26T02:24:03Z","updated_at":"2016-07-26T02:24:03Z","html_url":"https://github.com/framgia/book2/pull/48#discussion_r72178865","pull_request_url":"https://api.github.com/repos/framgia/book2/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/framgia/book2/pulls/comments/72178865"},"html":{"href":"https://github.com/framgia/book2/pull/48#discussion_r72178865"},"pull_request":{"href":"https://api.github.com/repos/framgia/book2/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/book2/pulls/48","id":78437138,"html_url":"https://github.com/framgia/book2/pull/48","diff_url":"https://github.com/framgia/book2/pull/48.diff","patch_url":"https://github.com/framgia/book2/pull/48.patch","issue_url":"https://api.github.com/repos/framgia/book2/issues/48","number":48,"state":"open","locked":false,"title":"Task#63037 社内本一覧に画像イメージを表示するようにした＆ISBN10←→13変換機能追加","user":{"login":"ynarasak","id":10795621,"avatar_url":"https://avatars.githubusercontent.com/u/10795621?v=3","gravatar_id":"","url":"https://api.github.com/users/ynarasak","html_url":"https://github.com/ynarasak","followers_url":"https://api.github.com/users/ynarasak/followers","following_url":"https://api.github.com/users/ynarasak/following{/other_user}","gists_url":"https://api.github.com/users/ynarasak/gists{/gist_id}","starred_url":"https://api.github.com/users/ynarasak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynarasak/subscriptions","organizations_url":"https://api.github.com/users/ynarasak/orgs","repos_url":"https://api.github.com/users/ynarasak/repos","events_url":"https://api.github.com/users/ynarasak/events{/privacy}","received_events_url":"https://api.github.com/users/ynarasak/received_events","type":"User","site_admin":false},"body":"https://dev.framgia.com/redmine/issues/63037\r\n\r\n社内本一覧に画像イメージを表示するようにしました。\r\nメソッドの挿入位置等いろいろ少し気になっております・・\r\n\r\nただ、見た目は劇的に変わったと思いますっｗ\r\n![2016-07-22 16 41 20](https://cloud.githubusercontent.com/assets/10795621/17050140/3b564916-502c-11e6-9f00-735850b0d4d8.jpg)\r\n","created_at":"2016-07-22T07:49:53Z","updated_at":"2016-07-26T02:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e36cc9523ab409f46ba7ba5499f47fbe1307a961","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/book2/pulls/48/commits","review_comments_url":"https://api.github.com/repos/framgia/book2/pulls/48/comments","review_comment_url":"https://api.github.com/repos/framgia/book2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/book2/issues/48/comments","statuses_url":"https://api.github.com/repos/framgia/book2/statuses/963c17dd7d73589e0924ce3ea6ee4a974fa28c90","head":{"label":"ynarasak:task/63037","ref":"task/63037","sha":"963c17dd7d73589e0924ce3ea6ee4a974fa28c90","user":{"login":"ynarasak","id":10795621,"avatar_url":"https://avatars.githubusercontent.com/u/10795621?v=3","gravatar_id":"","url":"https://api.github.com/users/ynarasak","html_url":"https://github.com/ynarasak","followers_url":"https://api.github.com/users/ynarasak/followers","following_url":"https://api.github.com/users/ynarasak/following{/other_user}","gists_url":"https://api.github.com/users/ynarasak/gists{/gist_id}","starred_url":"https://api.github.com/users/ynarasak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynarasak/subscriptions","organizations_url":"https://api.github.com/users/ynarasak/orgs","repos_url":"https://api.github.com/users/ynarasak/repos","events_url":"https://api.github.com/users/ynarasak/events{/privacy}","received_events_url":"https://api.github.com/users/ynarasak/received_events","type":"User","site_admin":false},"repo":{"id":58786691,"name":"book2","full_name":"ynarasak/book2","owner":{"login":"ynarasak","id":10795621,"avatar_url":"https://avatars.githubusercontent.com/u/10795621?v=3","gravatar_id":"","url":"https://api.github.com/users/ynarasak","html_url":"https://github.com/ynarasak","followers_url":"https://api.github.com/users/ynarasak/followers","following_url":"https://api.github.com/users/ynarasak/following{/other_user}","gists_url":"https://api.github.com/users/ynarasak/gists{/gist_id}","starred_url":"https://api.github.com/users/ynarasak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynarasak/subscriptions","organizations_url":"https://api.github.com/users/ynarasak/orgs","repos_url":"https://api.github.com/users/ynarasak/repos","events_url":"https://api.github.com/users/ynarasak/events{/privacy}","received_events_url":"https://api.github.com/users/ynarasak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ynarasak/book2","description":"","fork":true,"url":"https://api.github.com/repos/ynarasak/book2","forks_url":"https://api.github.com/repos/ynarasak/book2/forks","keys_url":"https://api.github.com/repos/ynarasak/book2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ynarasak/book2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ynarasak/book2/teams","hooks_url":"https://api.github.com/repos/ynarasak/book2/hooks","issue_events_url":"https://api.github.com/repos/ynarasak/book2/issues/events{/number}","events_url":"https://api.github.com/repos/ynarasak/book2/events","assignees_url":"https://api.github.com/repos/ynarasak/book2/assignees{/user}","branches_url":"https://api.github.com/repos/ynarasak/book2/branches{/branch}","tags_url":"https://api.github.com/repos/ynarasak/book2/tags","blobs_url":"https://api.github.com/repos/ynarasak/book2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ynarasak/book2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ynarasak/book2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ynarasak/book2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ynarasak/book2/statuses/{sha}","languages_url":"https://api.github.com/repos/ynarasak/book2/languages","stargazers_url":"https://api.github.com/repos/ynarasak/book2/stargazers","contributors_url":"https://api.github.com/repos/ynarasak/book2/contributors","subscribers_url":"https://api.github.com/repos/ynarasak/book2/subscribers","subscription_url":"https://api.github.com/repos/ynarasak/book2/subscription","commits_url":"https://api.github.com/repos/ynarasak/book2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ynarasak/book2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ynarasak/book2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ynarasak/book2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ynarasak/book2/contents/{+path}","compare_url":"https://api.github.com/repos/ynarasak/book2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ynarasak/book2/merges","archive_url":"https://api.github.com/repos/ynarasak/book2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ynarasak/book2/downloads","issues_url":"https://api.github.com/repos/ynarasak/book2/issues{/number}","pulls_url":"https://api.github.com/repos/ynarasak/book2/pulls{/number}","milestones_url":"https://api.github.com/repos/ynarasak/book2/milestones{/number}","notifications_url":"https://api.github.com/repos/ynarasak/book2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ynarasak/book2/labels{/name}","releases_url":"https://api.github.com/repos/ynarasak/book2/releases{/id}","deployments_url":"https://api.github.com/repos/ynarasak/book2/deployments","created_at":"2016-05-14T03:07:04Z","updated_at":"2016-05-14T03:07:05Z","pushed_at":"2016-07-26T02:15:38Z","git_url":"git://github.com/ynarasak/book2.git","ssh_url":"git@github.com:ynarasak/book2.git","clone_url":"https://github.com/ynarasak/book2.git","svn_url":"https://github.com/ynarasak/book2","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:master","ref":"master","sha":"a5a19c42006f1490dc919ddb0fc2c158ead6d095","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":58783165,"name":"book2","full_name":"framgia/book2","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/book2","description":"","fork":false,"url":"https://api.github.com/repos/framgia/book2","forks_url":"https://api.github.com/repos/framgia/book2/forks","keys_url":"https://api.github.com/repos/framgia/book2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/book2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/book2/teams","hooks_url":"https://api.github.com/repos/framgia/book2/hooks","issue_events_url":"https://api.github.com/repos/framgia/book2/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/book2/events","assignees_url":"https://api.github.com/repos/framgia/book2/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/book2/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/book2/tags","blobs_url":"https://api.github.com/repos/framgia/book2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/book2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/book2/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/book2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/book2/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/book2/languages","stargazers_url":"https://api.github.com/repos/framgia/book2/stargazers","contributors_url":"https://api.github.com/repos/framgia/book2/contributors","subscribers_url":"https://api.github.com/repos/framgia/book2/subscribers","subscription_url":"https://api.github.com/repos/framgia/book2/subscription","commits_url":"https://api.github.com/repos/framgia/book2/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/book2/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/book2/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/book2/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/book2/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/book2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/book2/merges","archive_url":"https://api.github.com/repos/framgia/book2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/book2/downloads","issues_url":"https://api.github.com/repos/framgia/book2/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/book2/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/book2/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/book2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/book2/labels{/name}","releases_url":"https://api.github.com/repos/framgia/book2/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/book2/deployments","created_at":"2016-05-14T01:22:12Z","updated_at":"2016-05-14T03:02:38Z","pushed_at":"2016-07-26T02:15:39Z","git_url":"git://github.com/framgia/book2.git","ssh_url":"git@github.com:framgia/book2.git","clone_url":"https://github.com/framgia/book2.git","svn_url":"https://github.com/framgia/book2","homepage":null,"size":153,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/book2/pulls/48"},"html":{"href":"https://github.com/framgia/book2/pull/48"},"issue":{"href":"https://api.github.com/repos/framgia/book2/issues/48"},"comments":{"href":"https://api.github.com/repos/framgia/book2/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/book2/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/book2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/book2/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/book2/statuses/963c17dd7d73589e0924ce3ea6ee4a974fa28c90"}}}}
{"actor":{"display_login":"ynarasak"}}