{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/29650050","id":29650050,"diff_hunk":"@@ -93,23 +93,18 @@ def current_subscription\n   end\n \n   def retrieve_add_ons\n-    add_ons = Billing.where(:user_id => current_user.id).first\n-    add_ons = add_ons.nil? ? false : add_ons\n-    unless add_ons.eql? false\n-      retrieve_timelapses add_ons\n-      retrieve_snapmails add_ons\n-    end\n-  end\n-\n-  def retrieve_snapmails add_ons\n-    @snapmails = add_ons.snapmail.present? ? add_ons.snapmail : 0\n-  rescue\n+    @add_ons = AddOns.where(:user_id => current_user.id)","path":"app/controllers/application_controller.rb","position":15,"original_position":15,"commit_id":"6f96bbd0d205da4747e7de2333c01b893de6c066","original_commit_id":"6f96bbd0d205da4747e7de2333c01b893de6c066","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":"Use the new Ruby 1.9 hash syntax.","created_at":"2015-05-05T08:17:00Z","updated_at":"2015-05-05T08:17:00Z","html_url":"https://github.com/evercam/evercam-dashboard/pull/496#discussion_r29650050","pull_request_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/29650050"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/496#discussion_r29650050"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496","id":34466262,"html_url":"https://github.com/evercam/evercam-dashboard/pull/496","diff_url":"https://github.com/evercam/evercam-dashboard/pull/496.diff","patch_url":"https://github.com/evercam/evercam-dashboard/pull/496.patch","issue_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/496","number":496,"state":"open","locked":false,"title":"Billing reshuffle","user":{"login":"Jaibles","id":4536123,"avatar_url":"https://avatars.githubusercontent.com/u/4536123?v=3","gravatar_id":"","url":"https://api.github.com/users/Jaibles","html_url":"https://github.com/Jaibles","followers_url":"https://api.github.com/users/Jaibles/followers","following_url":"https://api.github.com/users/Jaibles/following{/other_user}","gists_url":"https://api.github.com/users/Jaibles/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaibles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaibles/subscriptions","organizations_url":"https://api.github.com/users/Jaibles/orgs","repos_url":"https://api.github.com/users/Jaibles/repos","events_url":"https://api.github.com/users/Jaibles/events{/privacy}","received_events_url":"https://api.github.com/users/Jaibles/received_events","type":"User","site_admin":false},"body":"@azharmalik3 ","created_at":"2015-04-30T14:42:36Z","updated_at":"2015-05-05T08:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdf60d7cacc906a42df556be6f1d81e74d9525a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/496/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/6f96bbd0d205da4747e7de2333c01b893de6c066","head":{"label":"evercam:billing-reshuffle","ref":"billing-reshuffle","sha":"6f96bbd0d205da4747e7de2333c01b893de6c066","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-05-01T14:12:07Z","pushed_at":"2015-05-05T08:16:53Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":166952,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"9a3d08cba9e53db2dad8015f7b881fb3b2fbd81f","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-05-01T14:12:07Z","pushed_at":"2015-05-05T08:16:53Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":166952,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/496"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/496"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/496/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/496/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/6f96bbd0d205da4747e7de2333c01b893de6c066"}}}}