{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_18/pulls/comments/49681098","id":49681098,"diff_hunk":"@@ -3,7 +3,8 @@ class FavouritesController < ApplicationController\n \n   def update\n     @user_book = UserBook.find params[:id]\n-    FavouriteService.new(@user_book).update book_params\n+    FavouriteService.new(@user_book, current_user).update book_params\n+    @user_book.create_activity key: \"UsersBook.favourite\", owner: current_user","path":"app/controllers/favourites_controller.rb","position":6,"original_position":6,"commit_id":"f835ddf412c4572b7036d0c9442b48d863114ed9","original_commit_id":"f835ddf412c4572b7036d0c9442b48d863114ed9","user":{"login":"MuhammadTamzid","id":14922233,"avatar_url":"https://avatars.githubusercontent.com/u/14922233?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhammadTamzid","html_url":"https://github.com/MuhammadTamzid","followers_url":"https://api.github.com/users/MuhammadTamzid/followers","following_url":"https://api.github.com/users/MuhammadTamzid/following{/other_user}","gists_url":"https://api.github.com/users/MuhammadTamzid/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhammadTamzid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhammadTamzid/subscriptions","organizations_url":"https://api.github.com/users/MuhammadTamzid/orgs","repos_url":"https://api.github.com/users/MuhammadTamzid/repos","events_url":"https://api.github.com/users/MuhammadTamzid/events{/privacy}","received_events_url":"https://api.github.com/users/MuhammadTamzid/received_events","type":"User","site_admin":false},"body":"push this code on service","created_at":"2016-01-14T02:29:39Z","updated_at":"2016-01-14T02:29:39Z","html_url":"https://github.com/framgia/brs_18/pull/75#discussion_r49681098","pull_request_url":"https://api.github.com/repos/framgia/brs_18/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/comments/49681098"},"html":{"href":"https://github.com/framgia/brs_18/pull/75#discussion_r49681098"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_18/pulls/75","id":55891660,"html_url":"https://github.com/framgia/brs_18/pull/75","diff_url":"https://github.com/framgia/brs_18/pull/75.diff","patch_url":"https://github.com/framgia/brs_18/pull/75.patch","issue_url":"https://api.github.com/repos/framgia/brs_18/issues/75","number":75,"state":"open","locked":false,"title":"refactoring activity","user":{"login":"mdmahmudurrahman","id":16096144,"avatar_url":"https://avatars.githubusercontent.com/u/16096144?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmahmudurrahman","html_url":"https://github.com/mdmahmudurrahman","followers_url":"https://api.github.com/users/mdmahmudurrahman/followers","following_url":"https://api.github.com/users/mdmahmudurrahman/following{/other_user}","gists_url":"https://api.github.com/users/mdmahmudurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmahmudurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmahmudurrahman/subscriptions","organizations_url":"https://api.github.com/users/mdmahmudurrahman/orgs","repos_url":"https://api.github.com/users/mdmahmudurrahman/repos","events_url":"https://api.github.com/users/mdmahmudurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/mdmahmudurrahman/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T12:35:25Z","updated_at":"2016-01-14T02:29:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dae669459e6f3d33e274dd55229c7773de64cd24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_18/pulls/75/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_18/pulls/75/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_18/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_18/issues/75/comments","statuses_url":"https://api.github.com/repos/framgia/brs_18/statuses/f835ddf412c4572b7036d0c9442b48d863114ed9","head":{"label":"mdmahmudurrahman:refactoring_activity","ref":"refactoring_activity","sha":"f835ddf412c4572b7036d0c9442b48d863114ed9","user":{"login":"mdmahmudurrahman","id":16096144,"avatar_url":"https://avatars.githubusercontent.com/u/16096144?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmahmudurrahman","html_url":"https://github.com/mdmahmudurrahman","followers_url":"https://api.github.com/users/mdmahmudurrahman/followers","following_url":"https://api.github.com/users/mdmahmudurrahman/following{/other_user}","gists_url":"https://api.github.com/users/mdmahmudurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmahmudurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmahmudurrahman/subscriptions","organizations_url":"https://api.github.com/users/mdmahmudurrahman/orgs","repos_url":"https://api.github.com/users/mdmahmudurrahman/repos","events_url":"https://api.github.com/users/mdmahmudurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/mdmahmudurrahman/received_events","type":"User","site_admin":false},"repo":{"id":48791513,"name":"brs_18","full_name":"mdmahmudurrahman/brs_18","owner":{"login":"mdmahmudurrahman","id":16096144,"avatar_url":"https://avatars.githubusercontent.com/u/16096144?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmahmudurrahman","html_url":"https://github.com/mdmahmudurrahman","followers_url":"https://api.github.com/users/mdmahmudurrahman/followers","following_url":"https://api.github.com/users/mdmahmudurrahman/following{/other_user}","gists_url":"https://api.github.com/users/mdmahmudurrahman/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmahmudurrahman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmahmudurrahman/subscriptions","organizations_url":"https://api.github.com/users/mdmahmudurrahman/orgs","repos_url":"https://api.github.com/users/mdmahmudurrahman/repos","events_url":"https://api.github.com/users/mdmahmudurrahman/events{/privacy}","received_events_url":"https://api.github.com/users/mdmahmudurrahman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdmahmudurrahman/brs_18","description":"Book Reviewing System","fork":true,"url":"https://api.github.com/repos/mdmahmudurrahman/brs_18","forks_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/forks","keys_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/teams","hooks_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/hooks","issue_events_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/issues/events{/number}","events_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/events","assignees_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/assignees{/user}","branches_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/branches{/branch}","tags_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/tags","blobs_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/statuses/{sha}","languages_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/languages","stargazers_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/stargazers","contributors_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/contributors","subscribers_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/subscribers","subscription_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/subscription","commits_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/contents/{+path}","compare_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/merges","archive_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/downloads","issues_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/issues{/number}","pulls_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/pulls{/number}","milestones_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/milestones{/number}","notifications_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/labels{/name}","releases_url":"https://api.github.com/repos/mdmahmudurrahman/brs_18/releases{/id}","created_at":"2015-12-30T08:48:04Z","updated_at":"2015-12-30T02:38:44Z","pushed_at":"2016-01-13T12:38:51Z","git_url":"git://github.com/mdmahmudurrahman/brs_18.git","ssh_url":"git@github.com:mdmahmudurrahman/brs_18.git","clone_url":"https://github.com/mdmahmudurrahman/brs_18.git","svn_url":"https://github.com/mdmahmudurrahman/brs_18","homepage":null,"size":310,"stargazers_count":0,"watchers_count":0,"language":null,"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:develop","ref":"develop","sha":"6e099c6a52cd6f1a74e6283497e855c714c584a4","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":48777558,"name":"brs_18","full_name":"framgia/brs_18","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/brs_18","description":"Book Reviewing System","fork":false,"url":"https://api.github.com/repos/framgia/brs_18","forks_url":"https://api.github.com/repos/framgia/brs_18/forks","keys_url":"https://api.github.com/repos/framgia/brs_18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_18/teams","hooks_url":"https://api.github.com/repos/framgia/brs_18/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_18/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_18/events","assignees_url":"https://api.github.com/repos/framgia/brs_18/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_18/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_18/tags","blobs_url":"https://api.github.com/repos/framgia/brs_18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_18/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_18/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_18/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_18/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_18/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_18/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_18/subscription","commits_url":"https://api.github.com/repos/framgia/brs_18/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_18/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_18/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_18/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_18/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_18/merges","archive_url":"https://api.github.com/repos/framgia/brs_18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_18/downloads","issues_url":"https://api.github.com/repos/framgia/brs_18/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_18/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_18/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_18/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_18/releases{/id}","created_at":"2015-12-30T02:38:44Z","updated_at":"2015-12-30T02:38:44Z","pushed_at":"2016-01-13T12:38:52Z","git_url":"git://github.com/framgia/brs_18.git","ssh_url":"git@github.com:framgia/brs_18.git","clone_url":"https://github.com/framgia/brs_18.git","svn_url":"https://github.com/framgia/brs_18","homepage":null,"size":305,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/75"},"html":{"href":"https://github.com/framgia/brs_18/pull/75"},"issue":{"href":"https://api.github.com/repos/framgia/brs_18/issues/75"},"comments":{"href":"https://api.github.com/repos/framgia/brs_18/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_18/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_18/statuses/f835ddf412c4572b7036d0c9442b48d863114ed9"}}}}