{"action":"created","comment":{"url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/comments/52962899","id":52962899,"diff_hunk":"@@ -1,9 +1,16 @@\n class User < ActiveRecord::Base\n   # Include default devise modules. Others available are:\n   # :confirmable, :lockable, :timeoutable and :omniauthable\n+  has_many :likes, dependent: :destroy\n+  has_many :bookmarks, through: :likes","path":"app/models/user.rb","position":5,"original_position":5,"commit_id":"9db2150163e702728701f8a2cab1cde53bf8799f","original_commit_id":"9db2150163e702728701f8a2cab1cde53bf8799f","user":{"login":"bjblock","id":1300521,"avatar_url":"https://avatars.githubusercontent.com/u/1300521?v=3","gravatar_id":"","url":"https://api.github.com/users/bjblock","html_url":"https://github.com/bjblock","followers_url":"https://api.github.com/users/bjblock/followers","following_url":"https://api.github.com/users/bjblock/following{/other_user}","gists_url":"https://api.github.com/users/bjblock/gists{/gist_id}","starred_url":"https://api.github.com/users/bjblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjblock/subscriptions","organizations_url":"https://api.github.com/users/bjblock/orgs","repos_url":"https://api.github.com/users/bjblock/repos","events_url":"https://api.github.com/users/bjblock/events{/privacy}","received_events_url":"https://api.github.com/users/bjblock/received_events","type":"User","site_admin":false},"body":"does this conflict with any other association?","created_at":"2016-02-16T02:29:58Z","updated_at":"2016-02-16T02:29:58Z","html_url":"https://github.com/TKChattoraj/blocmark_repo/pull/7#discussion_r52962899","pull_request_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/comments/52962899"},"html":{"href":"https://github.com/TKChattoraj/blocmark_repo/pull/7#discussion_r52962899"},"pull_request":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7","id":59305622,"html_url":"https://github.com/TKChattoraj/blocmark_repo/pull/7","diff_url":"https://github.com/TKChattoraj/blocmark_repo/pull/7.diff","patch_url":"https://github.com/TKChattoraj/blocmark_repo/pull/7.patch","issue_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/7","number":7,"state":"closed","locked":false,"title":"Like/Unlike bookmarks","user":{"login":"TKChattoraj","id":1500003,"avatar_url":"https://avatars.githubusercontent.com/u/1500003?v=3","gravatar_id":"","url":"https://api.github.com/users/TKChattoraj","html_url":"https://github.com/TKChattoraj","followers_url":"https://api.github.com/users/TKChattoraj/followers","following_url":"https://api.github.com/users/TKChattoraj/following{/other_user}","gists_url":"https://api.github.com/users/TKChattoraj/gists{/gist_id}","starred_url":"https://api.github.com/users/TKChattoraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKChattoraj/subscriptions","organizations_url":"https://api.github.com/users/TKChattoraj/orgs","repos_url":"https://api.github.com/users/TKChattoraj/repos","events_url":"https://api.github.com/users/TKChattoraj/events{/privacy}","received_events_url":"https://api.github.com/users/TKChattoraj/received_events","type":"User","site_admin":false},"body":"This branch:\r\n\r\n- Generates a Like Model as a join table that belongs to a User and a Bookmark.  The User has many Bookmarks through the Like Model and similarly so the Bookmark has many Users through the Like Model. \r\n\r\n- Specs test the User/Like/Bookmark associations and the likes_cocntroller #index, #create and #destroy actions.  \r\n\r\n- A LikePolicy establishes the user authorization--User  must be signed in to create a Like and must be the LIke owner in order to destroy it.  \r\n\r\n- Used a partial to display the index views from the likes_controller and the topics_controller.  likes#index will show only those bookmarks that are liked and group them by topic.  A topic that has no likes will be skpped.  topics#index, on the other hand, displays all bookmarks grouped by topic and will display an empty topic.  A has with topics/bookmarks key/value pairs is used.  The likes#index action will include in the bookmarks values only those that are liked, whereas the topics#index action will include all bookmarks associated with a topics key.  ","created_at":"2016-02-14T20:55:53Z","updated_at":"2016-02-16T02:29:58Z","closed_at":"2016-02-14T20:56:14Z","merged_at":"2016-02-14T20:56:14Z","merge_commit_sha":"cd32c88b1f90b2dfc66a845885f9dfab255219c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7/commits","review_comments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7/comments","review_comment_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/7/comments","statuses_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/statuses/9db2150163e702728701f8a2cab1cde53bf8799f","head":{"label":"TKChattoraj:Like-Unlike-Bookmarks","ref":"Like-Unlike-Bookmarks","sha":"9db2150163e702728701f8a2cab1cde53bf8799f","user":{"login":"TKChattoraj","id":1500003,"avatar_url":"https://avatars.githubusercontent.com/u/1500003?v=3","gravatar_id":"","url":"https://api.github.com/users/TKChattoraj","html_url":"https://github.com/TKChattoraj","followers_url":"https://api.github.com/users/TKChattoraj/followers","following_url":"https://api.github.com/users/TKChattoraj/following{/other_user}","gists_url":"https://api.github.com/users/TKChattoraj/gists{/gist_id}","starred_url":"https://api.github.com/users/TKChattoraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKChattoraj/subscriptions","organizations_url":"https://api.github.com/users/TKChattoraj/orgs","repos_url":"https://api.github.com/users/TKChattoraj/repos","events_url":"https://api.github.com/users/TKChattoraj/events{/privacy}","received_events_url":"https://api.github.com/users/TKChattoraj/received_events","type":"User","site_admin":false},"repo":{"id":48404932,"name":"blocmark_repo","full_name":"TKChattoraj/blocmark_repo","owner":{"login":"TKChattoraj","id":1500003,"avatar_url":"https://avatars.githubusercontent.com/u/1500003?v=3","gravatar_id":"","url":"https://api.github.com/users/TKChattoraj","html_url":"https://github.com/TKChattoraj","followers_url":"https://api.github.com/users/TKChattoraj/followers","following_url":"https://api.github.com/users/TKChattoraj/following{/other_user}","gists_url":"https://api.github.com/users/TKChattoraj/gists{/gist_id}","starred_url":"https://api.github.com/users/TKChattoraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKChattoraj/subscriptions","organizations_url":"https://api.github.com/users/TKChattoraj/orgs","repos_url":"https://api.github.com/users/TKChattoraj/repos","events_url":"https://api.github.com/users/TKChattoraj/events{/privacy}","received_events_url":"https://api.github.com/users/TKChattoraj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TKChattoraj/blocmark_repo","description":"This is the repository for the blocmark app","fork":false,"url":"https://api.github.com/repos/TKChattoraj/blocmark_repo","forks_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/forks","keys_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/teams","hooks_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/hooks","issue_events_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/events{/number}","events_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/events","assignees_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/assignees{/user}","branches_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/branches{/branch}","tags_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/tags","blobs_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/statuses/{sha}","languages_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/languages","stargazers_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/stargazers","contributors_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/contributors","subscribers_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/subscribers","subscription_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/subscription","commits_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/contents/{+path}","compare_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/merges","archive_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/downloads","issues_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues{/number}","pulls_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls{/number}","milestones_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/milestones{/number}","notifications_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/labels{/name}","releases_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/releases{/id}","deployments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/deployments","created_at":"2015-12-22T02:10:39Z","updated_at":"2016-01-27T03:47:08Z","pushed_at":"2016-02-14T20:56:14Z","git_url":"git://github.com/TKChattoraj/blocmark_repo.git","ssh_url":"git@github.com:TKChattoraj/blocmark_repo.git","clone_url":"https://github.com/TKChattoraj/blocmark_repo.git","svn_url":"https://github.com/TKChattoraj/blocmark_repo","homepage":"","size":93,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TKChattoraj:master","ref":"master","sha":"3306c6fd4553ab26b459631e7cf35a4f59911c91","user":{"login":"TKChattoraj","id":1500003,"avatar_url":"https://avatars.githubusercontent.com/u/1500003?v=3","gravatar_id":"","url":"https://api.github.com/users/TKChattoraj","html_url":"https://github.com/TKChattoraj","followers_url":"https://api.github.com/users/TKChattoraj/followers","following_url":"https://api.github.com/users/TKChattoraj/following{/other_user}","gists_url":"https://api.github.com/users/TKChattoraj/gists{/gist_id}","starred_url":"https://api.github.com/users/TKChattoraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKChattoraj/subscriptions","organizations_url":"https://api.github.com/users/TKChattoraj/orgs","repos_url":"https://api.github.com/users/TKChattoraj/repos","events_url":"https://api.github.com/users/TKChattoraj/events{/privacy}","received_events_url":"https://api.github.com/users/TKChattoraj/received_events","type":"User","site_admin":false},"repo":{"id":48404932,"name":"blocmark_repo","full_name":"TKChattoraj/blocmark_repo","owner":{"login":"TKChattoraj","id":1500003,"avatar_url":"https://avatars.githubusercontent.com/u/1500003?v=3","gravatar_id":"","url":"https://api.github.com/users/TKChattoraj","html_url":"https://github.com/TKChattoraj","followers_url":"https://api.github.com/users/TKChattoraj/followers","following_url":"https://api.github.com/users/TKChattoraj/following{/other_user}","gists_url":"https://api.github.com/users/TKChattoraj/gists{/gist_id}","starred_url":"https://api.github.com/users/TKChattoraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKChattoraj/subscriptions","organizations_url":"https://api.github.com/users/TKChattoraj/orgs","repos_url":"https://api.github.com/users/TKChattoraj/repos","events_url":"https://api.github.com/users/TKChattoraj/events{/privacy}","received_events_url":"https://api.github.com/users/TKChattoraj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TKChattoraj/blocmark_repo","description":"This is the repository for the blocmark app","fork":false,"url":"https://api.github.com/repos/TKChattoraj/blocmark_repo","forks_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/forks","keys_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/teams","hooks_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/hooks","issue_events_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/events{/number}","events_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/events","assignees_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/assignees{/user}","branches_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/branches{/branch}","tags_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/tags","blobs_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/statuses/{sha}","languages_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/languages","stargazers_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/stargazers","contributors_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/contributors","subscribers_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/subscribers","subscription_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/subscription","commits_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/contents/{+path}","compare_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/merges","archive_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/downloads","issues_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues{/number}","pulls_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls{/number}","milestones_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/milestones{/number}","notifications_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/labels{/name}","releases_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/releases{/id}","deployments_url":"https://api.github.com/repos/TKChattoraj/blocmark_repo/deployments","created_at":"2015-12-22T02:10:39Z","updated_at":"2016-01-27T03:47:08Z","pushed_at":"2016-02-14T20:56:14Z","git_url":"git://github.com/TKChattoraj/blocmark_repo.git","ssh_url":"git@github.com:TKChattoraj/blocmark_repo.git","clone_url":"https://github.com/TKChattoraj/blocmark_repo.git","svn_url":"https://github.com/TKChattoraj/blocmark_repo","homepage":"","size":93,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7"},"html":{"href":"https://github.com/TKChattoraj/blocmark_repo/pull/7"},"issue":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/7"},"comments":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/TKChattoraj/blocmark_repo/statuses/9db2150163e702728701f8a2cab1cde53bf8799f"}}}}