{"action":"created","comment":{"url":"https://api.github.com/repos/andela/eventx/pulls/comments/44870537","id":44870537,"diff_hunk":"@@ -82,9 +82,18 @@ def self.format_date(type)\n   end\n \n   #scope\n-  scope :recent_events, -> {order(created_at: :DESC).limit(12)}\n-  scope :featured_events, -> {order(created_at: :DESC).limit(2)}\n-  scope :popular_events, -> {order(created_at: :DESC).limit(3)}\n+  scope :recent_events, -> { order(created_at: :DESC).limit(12) }\n+  scope :featured_events, -> { order(created_at: :DESC).limit(12) }\n+  scope :popular_events, -> lambda do","path":"app/models/event.rb","position":9,"original_position":9,"commit_id":"84f1d87b61117d7dc8c85c57430422ede2e68af6","original_commit_id":"84f1d87b61117d7dc8c85c57430422ede2e68af6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unused block argument - `lambda`. If it's necessary, use `_` or `_lambda` as an argument name to indicate that it won't be used. Also consider using a proc without arguments instead of a lambda if you want it to accept any arguments but don't care about them.<br>Use the `lambda` method for multi-line lambdas.","created_at":"2015-11-15T11:28:32Z","updated_at":"2015-11-15T11:28:32Z","html_url":"https://github.com/andela/eventx/pull/82#discussion_r44870537","pull_request_url":"https://api.github.com/repos/andela/eventx/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/andela/eventx/pulls/comments/44870537"},"html":{"href":"https://github.com/andela/eventx/pull/82#discussion_r44870537"},"pull_request":{"href":"https://api.github.com/repos/andela/eventx/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/andela/eventx/pulls/82","id":50697443,"html_url":"https://github.com/andela/eventx/pull/82","diff_url":"https://github.com/andela/eventx/pull/82.diff","patch_url":"https://github.com/andela/eventx/pull/82.patch","issue_url":"https://api.github.com/repos/andela/eventx/issues/82","number":82,"state":"open","locked":false,"title":"Fix github issue #69, #72, #74, #77, #78","user":{"login":"andela-ooranagwa","id":11221027,"avatar_url":"https://avatars.githubusercontent.com/u/11221027?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-ooranagwa","html_url":"https://github.com/andela-ooranagwa","followers_url":"https://api.github.com/users/andela-ooranagwa/followers","following_url":"https://api.github.com/users/andela-ooranagwa/following{/other_user}","gists_url":"https://api.github.com/users/andela-ooranagwa/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-ooranagwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-ooranagwa/subscriptions","organizations_url":"https://api.github.com/users/andela-ooranagwa/orgs","repos_url":"https://api.github.com/users/andela-ooranagwa/repos","events_url":"https://api.github.com/users/andela-ooranagwa/events{/privacy}","received_events_url":"https://api.github.com/users/andela-ooranagwa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-13T21:59:07Z","updated_at":"2015-11-15T11:28:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e8ac923e79917ac1651a3e7bead6b316866f694","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela/eventx/pulls/82/commits","review_comments_url":"https://api.github.com/repos/andela/eventx/pulls/82/comments","review_comment_url":"https://api.github.com/repos/andela/eventx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/eventx/issues/82/comments","statuses_url":"https://api.github.com/repos/andela/eventx/statuses/84f1d87b61117d7dc8c85c57430422ede2e68af6","head":{"label":"andela:feature/bug_fix","ref":"feature/bug_fix","sha":"84f1d87b61117d7dc8c85c57430422ede2e68af6","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":39064541,"name":"eventx","full_name":"andela/eventx","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/eventx","description":"","fork":false,"url":"https://api.github.com/repos/andela/eventx","forks_url":"https://api.github.com/repos/andela/eventx/forks","keys_url":"https://api.github.com/repos/andela/eventx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/eventx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/eventx/teams","hooks_url":"https://api.github.com/repos/andela/eventx/hooks","issue_events_url":"https://api.github.com/repos/andela/eventx/issues/events{/number}","events_url":"https://api.github.com/repos/andela/eventx/events","assignees_url":"https://api.github.com/repos/andela/eventx/assignees{/user}","branches_url":"https://api.github.com/repos/andela/eventx/branches{/branch}","tags_url":"https://api.github.com/repos/andela/eventx/tags","blobs_url":"https://api.github.com/repos/andela/eventx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/eventx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/eventx/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/eventx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/eventx/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/eventx/languages","stargazers_url":"https://api.github.com/repos/andela/eventx/stargazers","contributors_url":"https://api.github.com/repos/andela/eventx/contributors","subscribers_url":"https://api.github.com/repos/andela/eventx/subscribers","subscription_url":"https://api.github.com/repos/andela/eventx/subscription","commits_url":"https://api.github.com/repos/andela/eventx/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/eventx/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/eventx/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/eventx/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/eventx/contents/{+path}","compare_url":"https://api.github.com/repos/andela/eventx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/eventx/merges","archive_url":"https://api.github.com/repos/andela/eventx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/eventx/downloads","issues_url":"https://api.github.com/repos/andela/eventx/issues{/number}","pulls_url":"https://api.github.com/repos/andela/eventx/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/eventx/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/eventx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/eventx/labels{/name}","releases_url":"https://api.github.com/repos/andela/eventx/releases{/id}","created_at":"2015-07-14T08:57:10Z","updated_at":"2015-09-10T08:39:48Z","pushed_at":"2015-11-15T11:28:09Z","git_url":"git://github.com/andela/eventx.git","ssh_url":"git@github.com:andela/eventx.git","clone_url":"https://github.com/andela/eventx.git","svn_url":"https://github.com/andela/eventx","homepage":null,"size":7402,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"andela:social_share","ref":"social_share","sha":"4fd4ed5d294ec101ae2158955269ce5f0ea00552","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":39064541,"name":"eventx","full_name":"andela/eventx","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/eventx","description":"","fork":false,"url":"https://api.github.com/repos/andela/eventx","forks_url":"https://api.github.com/repos/andela/eventx/forks","keys_url":"https://api.github.com/repos/andela/eventx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/eventx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/eventx/teams","hooks_url":"https://api.github.com/repos/andela/eventx/hooks","issue_events_url":"https://api.github.com/repos/andela/eventx/issues/events{/number}","events_url":"https://api.github.com/repos/andela/eventx/events","assignees_url":"https://api.github.com/repos/andela/eventx/assignees{/user}","branches_url":"https://api.github.com/repos/andela/eventx/branches{/branch}","tags_url":"https://api.github.com/repos/andela/eventx/tags","blobs_url":"https://api.github.com/repos/andela/eventx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/eventx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/eventx/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/eventx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/eventx/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/eventx/languages","stargazers_url":"https://api.github.com/repos/andela/eventx/stargazers","contributors_url":"https://api.github.com/repos/andela/eventx/contributors","subscribers_url":"https://api.github.com/repos/andela/eventx/subscribers","subscription_url":"https://api.github.com/repos/andela/eventx/subscription","commits_url":"https://api.github.com/repos/andela/eventx/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/eventx/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/eventx/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/eventx/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/eventx/contents/{+path}","compare_url":"https://api.github.com/repos/andela/eventx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/eventx/merges","archive_url":"https://api.github.com/repos/andela/eventx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/eventx/downloads","issues_url":"https://api.github.com/repos/andela/eventx/issues{/number}","pulls_url":"https://api.github.com/repos/andela/eventx/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/eventx/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/eventx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/eventx/labels{/name}","releases_url":"https://api.github.com/repos/andela/eventx/releases{/id}","created_at":"2015-07-14T08:57:10Z","updated_at":"2015-09-10T08:39:48Z","pushed_at":"2015-11-15T11:28:09Z","git_url":"git://github.com/andela/eventx.git","ssh_url":"git@github.com:andela/eventx.git","clone_url":"https://github.com/andela/eventx.git","svn_url":"https://github.com/andela/eventx","homepage":null,"size":7402,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/eventx/pulls/82"},"html":{"href":"https://github.com/andela/eventx/pull/82"},"issue":{"href":"https://api.github.com/repos/andela/eventx/issues/82"},"comments":{"href":"https://api.github.com/repos/andela/eventx/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/eventx/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/eventx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/eventx/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/andela/eventx/statuses/84f1d87b61117d7dc8c85c57430422ede2e68af6"}}}}