{"action":"created","comment":{"url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/comments/24870805","id":24870805,"diff_hunk":"@@ -41,6 +41,10 @@ def pref_name\n     preferred_first_name || name.split.first\n   end\n \n+  def self.able_to_borrow","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"fda3d41688c498537f3526232183f1f30c2f056c","original_commit_id":"fda3d41688c498537f3526232183f1f30c2f056c","user":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"body":"Alternative to doing a scope.","created_at":"2015-02-18T00:52:55Z","updated_at":"2015-02-18T00:52:55Z","html_url":"https://github.com/cherimarie/LibraryCollection/pull/20#discussion_r24870805","pull_request_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/comments/24870805"},"html":{"href":"https://github.com/cherimarie/LibraryCollection/pull/20#discussion_r24870805"},"pull_request":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20","id":29488901,"html_url":"https://github.com/cherimarie/LibraryCollection/pull/20","diff_url":"https://github.com/cherimarie/LibraryCollection/pull/20.diff","patch_url":"https://github.com/cherimarie/LibraryCollection/pull/20.patch","issue_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/20","number":20,"state":"open","locked":false,"title":"multi loan basic functionality","user":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-17T23:41:10Z","updated_at":"2015-02-18T00:52:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79a59d08013ec842f7601aa0d6d67fe6e3821e30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20/commits","review_comments_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20/comments","review_comment_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/20/comments","statuses_url":"https://api.github.com/repos/cherimarie/LibraryCollection/statuses/fda3d41688c498537f3526232183f1f30c2f056c","head":{"label":"cherimarie:multi_loan","ref":"multi_loan","sha":"fda3d41688c498537f3526232183f1f30c2f056c","user":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"repo":{"id":28752205,"name":"LibraryCollection","full_name":"cherimarie/LibraryCollection","owner":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cherimarie/LibraryCollection","description":"A public web interface for patrons to view and search library collection","fork":true,"url":"https://api.github.com/repos/cherimarie/LibraryCollection","forks_url":"https://api.github.com/repos/cherimarie/LibraryCollection/forks","keys_url":"https://api.github.com/repos/cherimarie/LibraryCollection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cherimarie/LibraryCollection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cherimarie/LibraryCollection/teams","hooks_url":"https://api.github.com/repos/cherimarie/LibraryCollection/hooks","issue_events_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/events{/number}","events_url":"https://api.github.com/repos/cherimarie/LibraryCollection/events","assignees_url":"https://api.github.com/repos/cherimarie/LibraryCollection/assignees{/user}","branches_url":"https://api.github.com/repos/cherimarie/LibraryCollection/branches{/branch}","tags_url":"https://api.github.com/repos/cherimarie/LibraryCollection/tags","blobs_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/refs{/sha}","trees_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cherimarie/LibraryCollection/statuses/{sha}","languages_url":"https://api.github.com/repos/cherimarie/LibraryCollection/languages","stargazers_url":"https://api.github.com/repos/cherimarie/LibraryCollection/stargazers","contributors_url":"https://api.github.com/repos/cherimarie/LibraryCollection/contributors","subscribers_url":"https://api.github.com/repos/cherimarie/LibraryCollection/subscribers","subscription_url":"https://api.github.com/repos/cherimarie/LibraryCollection/subscription","commits_url":"https://api.github.com/repos/cherimarie/LibraryCollection/commits{/sha}","git_commits_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/commits{/sha}","comments_url":"https://api.github.com/repos/cherimarie/LibraryCollection/comments{/number}","issue_comment_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/comments/{number}","contents_url":"https://api.github.com/repos/cherimarie/LibraryCollection/contents/{+path}","compare_url":"https://api.github.com/repos/cherimarie/LibraryCollection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cherimarie/LibraryCollection/merges","archive_url":"https://api.github.com/repos/cherimarie/LibraryCollection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cherimarie/LibraryCollection/downloads","issues_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues{/number}","pulls_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls{/number}","milestones_url":"https://api.github.com/repos/cherimarie/LibraryCollection/milestones{/number}","notifications_url":"https://api.github.com/repos/cherimarie/LibraryCollection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cherimarie/LibraryCollection/labels{/name}","releases_url":"https://api.github.com/repos/cherimarie/LibraryCollection/releases{/id}","created_at":"2015-01-03T19:11:27Z","updated_at":"2015-02-17T19:06:53Z","pushed_at":"2015-02-18T00:45:09Z","git_url":"git://github.com/cherimarie/LibraryCollection.git","ssh_url":"git@github.com:cherimarie/LibraryCollection.git","clone_url":"https://github.com/cherimarie/LibraryCollection.git","svn_url":"https://github.com/cherimarie/LibraryCollection","homepage":null,"size":2173,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"cherimarie:master","ref":"master","sha":"d5fb5ec148af6841dab51fe77aab6bbeebfc018e","user":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"repo":{"id":28752205,"name":"LibraryCollection","full_name":"cherimarie/LibraryCollection","owner":{"login":"cherimarie","id":2523812,"avatar_url":"https://avatars.githubusercontent.com/u/2523812?v=3","gravatar_id":"","url":"https://api.github.com/users/cherimarie","html_url":"https://github.com/cherimarie","followers_url":"https://api.github.com/users/cherimarie/followers","following_url":"https://api.github.com/users/cherimarie/following{/other_user}","gists_url":"https://api.github.com/users/cherimarie/gists{/gist_id}","starred_url":"https://api.github.com/users/cherimarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherimarie/subscriptions","organizations_url":"https://api.github.com/users/cherimarie/orgs","repos_url":"https://api.github.com/users/cherimarie/repos","events_url":"https://api.github.com/users/cherimarie/events{/privacy}","received_events_url":"https://api.github.com/users/cherimarie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cherimarie/LibraryCollection","description":"A public web interface for patrons to view and search library collection","fork":true,"url":"https://api.github.com/repos/cherimarie/LibraryCollection","forks_url":"https://api.github.com/repos/cherimarie/LibraryCollection/forks","keys_url":"https://api.github.com/repos/cherimarie/LibraryCollection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cherimarie/LibraryCollection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cherimarie/LibraryCollection/teams","hooks_url":"https://api.github.com/repos/cherimarie/LibraryCollection/hooks","issue_events_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/events{/number}","events_url":"https://api.github.com/repos/cherimarie/LibraryCollection/events","assignees_url":"https://api.github.com/repos/cherimarie/LibraryCollection/assignees{/user}","branches_url":"https://api.github.com/repos/cherimarie/LibraryCollection/branches{/branch}","tags_url":"https://api.github.com/repos/cherimarie/LibraryCollection/tags","blobs_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/refs{/sha}","trees_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cherimarie/LibraryCollection/statuses/{sha}","languages_url":"https://api.github.com/repos/cherimarie/LibraryCollection/languages","stargazers_url":"https://api.github.com/repos/cherimarie/LibraryCollection/stargazers","contributors_url":"https://api.github.com/repos/cherimarie/LibraryCollection/contributors","subscribers_url":"https://api.github.com/repos/cherimarie/LibraryCollection/subscribers","subscription_url":"https://api.github.com/repos/cherimarie/LibraryCollection/subscription","commits_url":"https://api.github.com/repos/cherimarie/LibraryCollection/commits{/sha}","git_commits_url":"https://api.github.com/repos/cherimarie/LibraryCollection/git/commits{/sha}","comments_url":"https://api.github.com/repos/cherimarie/LibraryCollection/comments{/number}","issue_comment_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/comments/{number}","contents_url":"https://api.github.com/repos/cherimarie/LibraryCollection/contents/{+path}","compare_url":"https://api.github.com/repos/cherimarie/LibraryCollection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cherimarie/LibraryCollection/merges","archive_url":"https://api.github.com/repos/cherimarie/LibraryCollection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cherimarie/LibraryCollection/downloads","issues_url":"https://api.github.com/repos/cherimarie/LibraryCollection/issues{/number}","pulls_url":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls{/number}","milestones_url":"https://api.github.com/repos/cherimarie/LibraryCollection/milestones{/number}","notifications_url":"https://api.github.com/repos/cherimarie/LibraryCollection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cherimarie/LibraryCollection/labels{/name}","releases_url":"https://api.github.com/repos/cherimarie/LibraryCollection/releases{/id}","created_at":"2015-01-03T19:11:27Z","updated_at":"2015-02-17T19:06:53Z","pushed_at":"2015-02-18T00:45:09Z","git_url":"git://github.com/cherimarie/LibraryCollection.git","ssh_url":"git@github.com:cherimarie/LibraryCollection.git","clone_url":"https://github.com/cherimarie/LibraryCollection.git","svn_url":"https://github.com/cherimarie/LibraryCollection","homepage":null,"size":2173,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20"},"html":{"href":"https://github.com/cherimarie/LibraryCollection/pull/20"},"issue":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/20"},"comments":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/cherimarie/LibraryCollection/statuses/fda3d41688c498537f3526232183f1f30c2f056c"}}}}