{"action":"created","comment":{"url":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments/26235743","id":26235743,"diff_hunk":"@@ -8,15 +8,54 @@ class Like < ActiveRecord::Base\n     # a Participant may only Like an item once\n     validates :item_id, uniqueness: { scope: [:item_type, :participant_id] }\n \n-    scope :for_today, lambda {\n-      where(arel_table[:created_at]\n-              .gteq(Date.today.beginning_of_day)\n-              .and(arel_table[:created_at].lteq(Date.today.end_of_day)))\n-    }\n+    scope :for_today,\n+          lambda {\n+            where(arel_table[:created_at]\n+                    .gteq(Date.today.beginning_of_day)\n+                    .and(arel_table[:created_at].lteq(Date.today.end_of_day)))\n+          }\n \n-    scope :for_week, lambda {\n-      where(arel_table[:created_at]\n-              .gteq(Time.current.advance(days: -7).beginning_of_day))\n-    }\n+    scope :for_week,\n+          lambda {\n+            where(arel_table[:created_at]\n+                    .gteq(Time.current.advance(days: -7).beginning_of_day))\n+          }\n+\n+    def item_description","path":"app/models/social_networking/like.rb","position":26,"original_position":26,"commit_id":"10cc8c1b47a5c8d62a89e27203cf4b9011ca1792","original_commit_id":"10cc8c1b47a5c8d62a89e27203cf4b9011ca1792","user":{"login":"eschlange","id":4666065,"avatar_url":"https://avatars.githubusercontent.com/u/4666065?v=3","gravatar_id":"","url":"https://api.github.com/users/eschlange","html_url":"https://github.com/eschlange","followers_url":"https://api.github.com/users/eschlange/followers","following_url":"https://api.github.com/users/eschlange/following{/other_user}","gists_url":"https://api.github.com/users/eschlange/gists{/gist_id}","starred_url":"https://api.github.com/users/eschlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschlange/subscriptions","organizations_url":"https://api.github.com/users/eschlange/orgs","repos_url":"https://api.github.com/users/eschlange/repos","events_url":"https://api.github.com/users/eschlange/events{/privacy}","received_events_url":"https://api.github.com/users/eschlange/received_events","type":"User","site_admin":false},"body":"Last question: Does the Sharable class already exist?","created_at":"2015-03-11T17:39:35Z","updated_at":"2015-03-11T17:39:35Z","html_url":"https://github.com/cbitstech/social_networking/pull/7#discussion_r26235743","pull_request_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments/26235743"},"html":{"href":"https://github.com/cbitstech/social_networking/pull/7#discussion_r26235743"},"pull_request":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/cbitstech/social_networking/pulls/7","id":30955360,"html_url":"https://github.com/cbitstech/social_networking/pull/7","diff_url":"https://github.com/cbitstech/social_networking/pull/7.diff","patch_url":"https://github.com/cbitstech/social_networking/pull/7.patch","issue_url":"https://api.github.com/repos/cbitstech/social_networking/issues/7","number":7,"state":"open","locked":false,"title":"Add like table to group dash","user":{"login":"eschlange","id":4666065,"avatar_url":"https://avatars.githubusercontent.com/u/4666065?v=3","gravatar_id":"","url":"https://api.github.com/users/eschlange","html_url":"https://github.com/eschlange","followers_url":"https://api.github.com/users/eschlange/followers","following_url":"https://api.github.com/users/eschlange/following{/other_user}","gists_url":"https://api.github.com/users/eschlange/gists{/gist_id}","starred_url":"https://api.github.com/users/eschlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschlange/subscriptions","organizations_url":"https://api.github.com/users/eschlange/orgs","repos_url":"https://api.github.com/users/eschlange/repos","events_url":"https://api.github.com/users/eschlange/events{/privacy}","received_events_url":"https://api.github.com/users/eschlange/received_events","type":"User","site_admin":false},"body":"* Added item_description onto like model.\r\n* Added specs.","created_at":"2015-03-11T15:43:01Z","updated_at":"2015-03-11T17:39:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b78110968b3c0b5a15716145e2a2859a04a777a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/7/commits","review_comments_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/7/comments","review_comment_url":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/issues/7/comments","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/10cc8c1b47a5c8d62a89e27203cf4b9011ca1792","head":{"label":"cbitstech:ems-90054316-add-like-table-to-group-dash","ref":"ems-90054316-add-like-table-to-group-dash","sha":"10cc8c1b47a5c8d62a89e27203cf4b9011ca1792","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":23404675,"name":"social_networking","full_name":"cbitstech/social_networking","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/social_networking","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/social_networking","forks_url":"https://api.github.com/repos/cbitstech/social_networking/forks","keys_url":"https://api.github.com/repos/cbitstech/social_networking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/social_networking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/social_networking/teams","hooks_url":"https://api.github.com/repos/cbitstech/social_networking/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/social_networking/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/social_networking/events","assignees_url":"https://api.github.com/repos/cbitstech/social_networking/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/social_networking/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/social_networking/tags","blobs_url":"https://api.github.com/repos/cbitstech/social_networking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/social_networking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/social_networking/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/social_networking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/social_networking/languages","stargazers_url":"https://api.github.com/repos/cbitstech/social_networking/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/social_networking/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/social_networking/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/social_networking/subscription","commits_url":"https://api.github.com/repos/cbitstech/social_networking/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/social_networking/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/social_networking/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/social_networking/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/social_networking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/social_networking/merges","archive_url":"https://api.github.com/repos/cbitstech/social_networking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/social_networking/downloads","issues_url":"https://api.github.com/repos/cbitstech/social_networking/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/social_networking/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/social_networking/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/social_networking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/social_networking/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/social_networking/releases{/id}","created_at":"2014-08-27T20:38:20Z","updated_at":"2015-03-11T16:18:40Z","pushed_at":"2015-03-11T16:18:40Z","git_url":"git://github.com/cbitstech/social_networking.git","ssh_url":"git@github.com:cbitstech/social_networking.git","clone_url":"https://github.com/cbitstech/social_networking.git","svn_url":"https://github.com/cbitstech/social_networking","homepage":null,"size":2584,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cbitstech:master","ref":"master","sha":"5ddcfdb2b582e5934f2d0e23a8dbb8c8b1fc548c","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":23404675,"name":"social_networking","full_name":"cbitstech/social_networking","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/social_networking","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/social_networking","forks_url":"https://api.github.com/repos/cbitstech/social_networking/forks","keys_url":"https://api.github.com/repos/cbitstech/social_networking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/social_networking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/social_networking/teams","hooks_url":"https://api.github.com/repos/cbitstech/social_networking/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/social_networking/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/social_networking/events","assignees_url":"https://api.github.com/repos/cbitstech/social_networking/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/social_networking/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/social_networking/tags","blobs_url":"https://api.github.com/repos/cbitstech/social_networking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/social_networking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/social_networking/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/social_networking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/social_networking/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/social_networking/languages","stargazers_url":"https://api.github.com/repos/cbitstech/social_networking/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/social_networking/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/social_networking/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/social_networking/subscription","commits_url":"https://api.github.com/repos/cbitstech/social_networking/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/social_networking/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/social_networking/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/social_networking/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/social_networking/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/social_networking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/social_networking/merges","archive_url":"https://api.github.com/repos/cbitstech/social_networking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/social_networking/downloads","issues_url":"https://api.github.com/repos/cbitstech/social_networking/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/social_networking/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/social_networking/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/social_networking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/social_networking/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/social_networking/releases{/id}","created_at":"2014-08-27T20:38:20Z","updated_at":"2015-03-11T16:18:40Z","pushed_at":"2015-03-11T16:18:40Z","git_url":"git://github.com/cbitstech/social_networking.git","ssh_url":"git@github.com:cbitstech/social_networking.git","clone_url":"https://github.com/cbitstech/social_networking.git","svn_url":"https://github.com/cbitstech/social_networking","homepage":null,"size":2584,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/7"},"html":{"href":"https://github.com/cbitstech/social_networking/pull/7"},"issue":{"href":"https://api.github.com/repos/cbitstech/social_networking/issues/7"},"comments":{"href":"https://api.github.com/repos/cbitstech/social_networking/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbitstech/social_networking/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/cbitstech/social_networking/statuses/10cc8c1b47a5c8d62a89e27203cf4b9011ca1792"}}}}