{"action":"created","comment":{"url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/comments/48099754","id":48099754,"diff_hunk":"@@ -2,9 +2,10 @@ class MonthlyBillsController < ApplicationController\n   before_action :authenticate_user!\n \n   def index\n-    @authorized_user = MonthlyBill.joins(:user).where([\"monthly_bills.user_id = ? OR monthly_bills.user_id = ? OR users.invited_by_id = ?\",\n-                                                       current_user.id, current_user.invited_by_id, current_user.id])\n-    @search = @authorized_user.order(due_date: 'ASC').ransack(params[:q])\n+    authorized_user = MonthlyBill.joins(:user).where(\n+          [\"monthly_bills.user_id = ? OR monthly_bills.user_id = ? OR users.invited_by_id = ?\",","path":"app/controllers/monthly_bills_controller.rb","position":8,"original_position":8,"commit_id":"3a73faf344d9efdc8adf631bafde8799ce6eb170","original_commit_id":"3a73faf344d9efdc8adf631bafde8799ce6eb170","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":"Line is too long. [95/80]<br>Indent the first parameter one step more than the start of the previous line.","created_at":"2015-12-20T04:56:52Z","updated_at":"2015-12-20T04:56:52Z","html_url":"https://github.com/Peterortiz82/expense_pro/pull/2#discussion_r48099754","pull_request_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/comments/48099754"},"html":{"href":"https://github.com/Peterortiz82/expense_pro/pull/2#discussion_r48099754"},"pull_request":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2","id":54192921,"html_url":"https://github.com/Peterortiz82/expense_pro/pull/2","diff_url":"https://github.com/Peterortiz82/expense_pro/pull/2.diff","patch_url":"https://github.com/Peterortiz82/expense_pro/pull/2.patch","issue_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/2","number":2,"state":"open","locked":false,"title":"did some minor refactoring","user":{"login":"Peterortiz82","id":7608328,"avatar_url":"https://avatars.githubusercontent.com/u/7608328?v=3","gravatar_id":"","url":"https://api.github.com/users/Peterortiz82","html_url":"https://github.com/Peterortiz82","followers_url":"https://api.github.com/users/Peterortiz82/followers","following_url":"https://api.github.com/users/Peterortiz82/following{/other_user}","gists_url":"https://api.github.com/users/Peterortiz82/gists{/gist_id}","starred_url":"https://api.github.com/users/Peterortiz82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peterortiz82/subscriptions","organizations_url":"https://api.github.com/users/Peterortiz82/orgs","repos_url":"https://api.github.com/users/Peterortiz82/repos","events_url":"https://api.github.com/users/Peterortiz82/events{/privacy}","received_events_url":"https://api.github.com/users/Peterortiz82/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-20T04:45:03Z","updated_at":"2015-12-20T04:56:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f29419249192b6bff2dc770f154866bed0690a9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/2/comments","statuses_url":"https://api.github.com/repos/Peterortiz82/expense_pro/statuses/3a73faf344d9efdc8adf631bafde8799ce6eb170","head":{"label":"Peterortiz82:refactor","ref":"refactor","sha":"3a73faf344d9efdc8adf631bafde8799ce6eb170","user":{"login":"Peterortiz82","id":7608328,"avatar_url":"https://avatars.githubusercontent.com/u/7608328?v=3","gravatar_id":"","url":"https://api.github.com/users/Peterortiz82","html_url":"https://github.com/Peterortiz82","followers_url":"https://api.github.com/users/Peterortiz82/followers","following_url":"https://api.github.com/users/Peterortiz82/following{/other_user}","gists_url":"https://api.github.com/users/Peterortiz82/gists{/gist_id}","starred_url":"https://api.github.com/users/Peterortiz82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peterortiz82/subscriptions","organizations_url":"https://api.github.com/users/Peterortiz82/orgs","repos_url":"https://api.github.com/users/Peterortiz82/repos","events_url":"https://api.github.com/users/Peterortiz82/events{/privacy}","received_events_url":"https://api.github.com/users/Peterortiz82/received_events","type":"User","site_admin":false},"repo":{"id":46515375,"name":"expense_pro","full_name":"Peterortiz82/expense_pro","owner":{"login":"Peterortiz82","id":7608328,"avatar_url":"https://avatars.githubusercontent.com/u/7608328?v=3","gravatar_id":"","url":"https://api.github.com/users/Peterortiz82","html_url":"https://github.com/Peterortiz82","followers_url":"https://api.github.com/users/Peterortiz82/followers","following_url":"https://api.github.com/users/Peterortiz82/following{/other_user}","gists_url":"https://api.github.com/users/Peterortiz82/gists{/gist_id}","starred_url":"https://api.github.com/users/Peterortiz82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peterortiz82/subscriptions","organizations_url":"https://api.github.com/users/Peterortiz82/orgs","repos_url":"https://api.github.com/users/Peterortiz82/repos","events_url":"https://api.github.com/users/Peterortiz82/events{/privacy}","received_events_url":"https://api.github.com/users/Peterortiz82/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Peterortiz82/expense_pro","description":"A simple expense tracker ","fork":false,"url":"https://api.github.com/repos/Peterortiz82/expense_pro","forks_url":"https://api.github.com/repos/Peterortiz82/expense_pro/forks","keys_url":"https://api.github.com/repos/Peterortiz82/expense_pro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Peterortiz82/expense_pro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Peterortiz82/expense_pro/teams","hooks_url":"https://api.github.com/repos/Peterortiz82/expense_pro/hooks","issue_events_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/events{/number}","events_url":"https://api.github.com/repos/Peterortiz82/expense_pro/events","assignees_url":"https://api.github.com/repos/Peterortiz82/expense_pro/assignees{/user}","branches_url":"https://api.github.com/repos/Peterortiz82/expense_pro/branches{/branch}","tags_url":"https://api.github.com/repos/Peterortiz82/expense_pro/tags","blobs_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/refs{/sha}","trees_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Peterortiz82/expense_pro/statuses/{sha}","languages_url":"https://api.github.com/repos/Peterortiz82/expense_pro/languages","stargazers_url":"https://api.github.com/repos/Peterortiz82/expense_pro/stargazers","contributors_url":"https://api.github.com/repos/Peterortiz82/expense_pro/contributors","subscribers_url":"https://api.github.com/repos/Peterortiz82/expense_pro/subscribers","subscription_url":"https://api.github.com/repos/Peterortiz82/expense_pro/subscription","commits_url":"https://api.github.com/repos/Peterortiz82/expense_pro/commits{/sha}","git_commits_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/commits{/sha}","comments_url":"https://api.github.com/repos/Peterortiz82/expense_pro/comments{/number}","issue_comment_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/comments{/number}","contents_url":"https://api.github.com/repos/Peterortiz82/expense_pro/contents/{+path}","compare_url":"https://api.github.com/repos/Peterortiz82/expense_pro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Peterortiz82/expense_pro/merges","archive_url":"https://api.github.com/repos/Peterortiz82/expense_pro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Peterortiz82/expense_pro/downloads","issues_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues{/number}","pulls_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls{/number}","milestones_url":"https://api.github.com/repos/Peterortiz82/expense_pro/milestones{/number}","notifications_url":"https://api.github.com/repos/Peterortiz82/expense_pro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Peterortiz82/expense_pro/labels{/name}","releases_url":"https://api.github.com/repos/Peterortiz82/expense_pro/releases{/id}","created_at":"2015-11-19T19:30:35Z","updated_at":"2015-11-29T03:32:57Z","pushed_at":"2015-12-20T04:56:45Z","git_url":"git://github.com/Peterortiz82/expense_pro.git","ssh_url":"git@github.com:Peterortiz82/expense_pro.git","clone_url":"https://github.com/Peterortiz82/expense_pro.git","svn_url":"https://github.com/Peterortiz82/expense_pro","homepage":null,"size":463,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"default_branch":"master"}},"base":{"label":"Peterortiz82:master","ref":"master","sha":"5b09fbbc127ce8c395d4954b1d42fcda68b88393","user":{"login":"Peterortiz82","id":7608328,"avatar_url":"https://avatars.githubusercontent.com/u/7608328?v=3","gravatar_id":"","url":"https://api.github.com/users/Peterortiz82","html_url":"https://github.com/Peterortiz82","followers_url":"https://api.github.com/users/Peterortiz82/followers","following_url":"https://api.github.com/users/Peterortiz82/following{/other_user}","gists_url":"https://api.github.com/users/Peterortiz82/gists{/gist_id}","starred_url":"https://api.github.com/users/Peterortiz82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peterortiz82/subscriptions","organizations_url":"https://api.github.com/users/Peterortiz82/orgs","repos_url":"https://api.github.com/users/Peterortiz82/repos","events_url":"https://api.github.com/users/Peterortiz82/events{/privacy}","received_events_url":"https://api.github.com/users/Peterortiz82/received_events","type":"User","site_admin":false},"repo":{"id":46515375,"name":"expense_pro","full_name":"Peterortiz82/expense_pro","owner":{"login":"Peterortiz82","id":7608328,"avatar_url":"https://avatars.githubusercontent.com/u/7608328?v=3","gravatar_id":"","url":"https://api.github.com/users/Peterortiz82","html_url":"https://github.com/Peterortiz82","followers_url":"https://api.github.com/users/Peterortiz82/followers","following_url":"https://api.github.com/users/Peterortiz82/following{/other_user}","gists_url":"https://api.github.com/users/Peterortiz82/gists{/gist_id}","starred_url":"https://api.github.com/users/Peterortiz82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Peterortiz82/subscriptions","organizations_url":"https://api.github.com/users/Peterortiz82/orgs","repos_url":"https://api.github.com/users/Peterortiz82/repos","events_url":"https://api.github.com/users/Peterortiz82/events{/privacy}","received_events_url":"https://api.github.com/users/Peterortiz82/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Peterortiz82/expense_pro","description":"A simple expense tracker ","fork":false,"url":"https://api.github.com/repos/Peterortiz82/expense_pro","forks_url":"https://api.github.com/repos/Peterortiz82/expense_pro/forks","keys_url":"https://api.github.com/repos/Peterortiz82/expense_pro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Peterortiz82/expense_pro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Peterortiz82/expense_pro/teams","hooks_url":"https://api.github.com/repos/Peterortiz82/expense_pro/hooks","issue_events_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/events{/number}","events_url":"https://api.github.com/repos/Peterortiz82/expense_pro/events","assignees_url":"https://api.github.com/repos/Peterortiz82/expense_pro/assignees{/user}","branches_url":"https://api.github.com/repos/Peterortiz82/expense_pro/branches{/branch}","tags_url":"https://api.github.com/repos/Peterortiz82/expense_pro/tags","blobs_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/refs{/sha}","trees_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Peterortiz82/expense_pro/statuses/{sha}","languages_url":"https://api.github.com/repos/Peterortiz82/expense_pro/languages","stargazers_url":"https://api.github.com/repos/Peterortiz82/expense_pro/stargazers","contributors_url":"https://api.github.com/repos/Peterortiz82/expense_pro/contributors","subscribers_url":"https://api.github.com/repos/Peterortiz82/expense_pro/subscribers","subscription_url":"https://api.github.com/repos/Peterortiz82/expense_pro/subscription","commits_url":"https://api.github.com/repos/Peterortiz82/expense_pro/commits{/sha}","git_commits_url":"https://api.github.com/repos/Peterortiz82/expense_pro/git/commits{/sha}","comments_url":"https://api.github.com/repos/Peterortiz82/expense_pro/comments{/number}","issue_comment_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/comments{/number}","contents_url":"https://api.github.com/repos/Peterortiz82/expense_pro/contents/{+path}","compare_url":"https://api.github.com/repos/Peterortiz82/expense_pro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Peterortiz82/expense_pro/merges","archive_url":"https://api.github.com/repos/Peterortiz82/expense_pro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Peterortiz82/expense_pro/downloads","issues_url":"https://api.github.com/repos/Peterortiz82/expense_pro/issues{/number}","pulls_url":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls{/number}","milestones_url":"https://api.github.com/repos/Peterortiz82/expense_pro/milestones{/number}","notifications_url":"https://api.github.com/repos/Peterortiz82/expense_pro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Peterortiz82/expense_pro/labels{/name}","releases_url":"https://api.github.com/repos/Peterortiz82/expense_pro/releases{/id}","created_at":"2015-11-19T19:30:35Z","updated_at":"2015-11-29T03:32:57Z","pushed_at":"2015-12-20T04:56:45Z","git_url":"git://github.com/Peterortiz82/expense_pro.git","ssh_url":"git@github.com:Peterortiz82/expense_pro.git","clone_url":"https://github.com/Peterortiz82/expense_pro.git","svn_url":"https://github.com/Peterortiz82/expense_pro","homepage":null,"size":463,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2"},"html":{"href":"https://github.com/Peterortiz82/expense_pro/pull/2"},"issue":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/2"},"comments":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Peterortiz82/expense_pro/statuses/3a73faf344d9efdc8adf631bafde8799ce6eb170"}}}}