{"action":"created","comment":{"url":"https://api.github.com/repos/valleyjo/orgman/pulls/comments/27528360","id":27528360,"diff_hunk":"@@ -0,0 +1,18 @@\n+class CalendarDecorator < Draper::Decorator\n+  delegate_all\n+\n+  def render_destroy_link\n+    if h.current_user.position.present? &&\n+      (h.current_user.position == Position.find_by(name: User::SECRETARY))\n+      h.link_to \"remove\", h.calendar_path(object),\n+        { method: :delete, class: 'btn btn-danger btn-xs' }","path":"app/decorators/calendar_decorator.rb","position":8,"original_position":8,"commit_id":"2174b5ab7bcfeb4d7f52786e399eb2a854700404","original_commit_id":"2174b5ab7bcfeb4d7f52786e399eb2a854700404","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":"Align the parameters of a method call if they span more than one line.<br>Redundant curly braces around a hash parameter.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-03-31T22:09:25Z","updated_at":"2015-03-31T22:09:25Z","html_url":"https://github.com/valleyjo/orgman/pull/109#discussion_r27528360","pull_request_url":"https://api.github.com/repos/valleyjo/orgman/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/comments/27528360"},"html":{"href":"https://github.com/valleyjo/orgman/pull/109#discussion_r27528360"},"pull_request":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/valleyjo/orgman/pulls/109","id":32371208,"html_url":"https://github.com/valleyjo/orgman/pull/109","diff_url":"https://github.com/valleyjo/orgman/pull/109.diff","patch_url":"https://github.com/valleyjo/orgman/pull/109.patch","issue_url":"https://api.github.com/repos/valleyjo/orgman/issues/109","number":109,"state":"open","locked":false,"title":"Add Google Calendar Integration","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"body":"Close #99 and #108.","created_at":"2015-03-31T22:09:20Z","updated_at":"2015-03-31T22:09:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e46b44d55245b74c2c69112defe4bb95ad104ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/valleyjo/orgman/pulls/109/commits","review_comments_url":"https://api.github.com/repos/valleyjo/orgman/pulls/109/comments","review_comment_url":"https://api.github.com/repos/valleyjo/orgman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valleyjo/orgman/issues/109/comments","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/2174b5ab7bcfeb4d7f52786e399eb2a854700404","head":{"label":"valleyjo:av/calendar","ref":"av/calendar","sha":"2174b5ab7bcfeb4d7f52786e399eb2a854700404","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"repo":{"id":23852683,"name":"orgman","full_name":"valleyjo/orgman","owner":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valleyjo/orgman","description":"Org management with style :sparkles:","fork":false,"url":"https://api.github.com/repos/valleyjo/orgman","forks_url":"https://api.github.com/repos/valleyjo/orgman/forks","keys_url":"https://api.github.com/repos/valleyjo/orgman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valleyjo/orgman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valleyjo/orgman/teams","hooks_url":"https://api.github.com/repos/valleyjo/orgman/hooks","issue_events_url":"https://api.github.com/repos/valleyjo/orgman/issues/events{/number}","events_url":"https://api.github.com/repos/valleyjo/orgman/events","assignees_url":"https://api.github.com/repos/valleyjo/orgman/assignees{/user}","branches_url":"https://api.github.com/repos/valleyjo/orgman/branches{/branch}","tags_url":"https://api.github.com/repos/valleyjo/orgman/tags","blobs_url":"https://api.github.com/repos/valleyjo/orgman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valleyjo/orgman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valleyjo/orgman/git/refs{/sha}","trees_url":"https://api.github.com/repos/valleyjo/orgman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/{sha}","languages_url":"https://api.github.com/repos/valleyjo/orgman/languages","stargazers_url":"https://api.github.com/repos/valleyjo/orgman/stargazers","contributors_url":"https://api.github.com/repos/valleyjo/orgman/contributors","subscribers_url":"https://api.github.com/repos/valleyjo/orgman/subscribers","subscription_url":"https://api.github.com/repos/valleyjo/orgman/subscription","commits_url":"https://api.github.com/repos/valleyjo/orgman/commits{/sha}","git_commits_url":"https://api.github.com/repos/valleyjo/orgman/git/commits{/sha}","comments_url":"https://api.github.com/repos/valleyjo/orgman/comments{/number}","issue_comment_url":"https://api.github.com/repos/valleyjo/orgman/issues/comments{/number}","contents_url":"https://api.github.com/repos/valleyjo/orgman/contents/{+path}","compare_url":"https://api.github.com/repos/valleyjo/orgman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valleyjo/orgman/merges","archive_url":"https://api.github.com/repos/valleyjo/orgman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valleyjo/orgman/downloads","issues_url":"https://api.github.com/repos/valleyjo/orgman/issues{/number}","pulls_url":"https://api.github.com/repos/valleyjo/orgman/pulls{/number}","milestones_url":"https://api.github.com/repos/valleyjo/orgman/milestones{/number}","notifications_url":"https://api.github.com/repos/valleyjo/orgman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valleyjo/orgman/labels{/name}","releases_url":"https://api.github.com/repos/valleyjo/orgman/releases{/id}","created_at":"2014-09-09T22:41:37Z","updated_at":"2015-03-23T20:20:21Z","pushed_at":"2015-03-31T22:09:20Z","git_url":"git://github.com/valleyjo/orgman.git","ssh_url":"git@github.com:valleyjo/orgman.git","clone_url":"https://github.com/valleyjo/orgman.git","svn_url":"https://github.com/valleyjo/orgman","homepage":"http://orgman.herokuapp.com/","size":2033,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"valleyjo:master","ref":"master","sha":"7844a6b33e96e1c87817920e7f75c63b2b9fbc60","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"repo":{"id":23852683,"name":"orgman","full_name":"valleyjo/orgman","owner":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valleyjo/orgman","description":"Org management with style :sparkles:","fork":false,"url":"https://api.github.com/repos/valleyjo/orgman","forks_url":"https://api.github.com/repos/valleyjo/orgman/forks","keys_url":"https://api.github.com/repos/valleyjo/orgman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valleyjo/orgman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valleyjo/orgman/teams","hooks_url":"https://api.github.com/repos/valleyjo/orgman/hooks","issue_events_url":"https://api.github.com/repos/valleyjo/orgman/issues/events{/number}","events_url":"https://api.github.com/repos/valleyjo/orgman/events","assignees_url":"https://api.github.com/repos/valleyjo/orgman/assignees{/user}","branches_url":"https://api.github.com/repos/valleyjo/orgman/branches{/branch}","tags_url":"https://api.github.com/repos/valleyjo/orgman/tags","blobs_url":"https://api.github.com/repos/valleyjo/orgman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valleyjo/orgman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valleyjo/orgman/git/refs{/sha}","trees_url":"https://api.github.com/repos/valleyjo/orgman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/{sha}","languages_url":"https://api.github.com/repos/valleyjo/orgman/languages","stargazers_url":"https://api.github.com/repos/valleyjo/orgman/stargazers","contributors_url":"https://api.github.com/repos/valleyjo/orgman/contributors","subscribers_url":"https://api.github.com/repos/valleyjo/orgman/subscribers","subscription_url":"https://api.github.com/repos/valleyjo/orgman/subscription","commits_url":"https://api.github.com/repos/valleyjo/orgman/commits{/sha}","git_commits_url":"https://api.github.com/repos/valleyjo/orgman/git/commits{/sha}","comments_url":"https://api.github.com/repos/valleyjo/orgman/comments{/number}","issue_comment_url":"https://api.github.com/repos/valleyjo/orgman/issues/comments{/number}","contents_url":"https://api.github.com/repos/valleyjo/orgman/contents/{+path}","compare_url":"https://api.github.com/repos/valleyjo/orgman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valleyjo/orgman/merges","archive_url":"https://api.github.com/repos/valleyjo/orgman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valleyjo/orgman/downloads","issues_url":"https://api.github.com/repos/valleyjo/orgman/issues{/number}","pulls_url":"https://api.github.com/repos/valleyjo/orgman/pulls{/number}","milestones_url":"https://api.github.com/repos/valleyjo/orgman/milestones{/number}","notifications_url":"https://api.github.com/repos/valleyjo/orgman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valleyjo/orgman/labels{/name}","releases_url":"https://api.github.com/repos/valleyjo/orgman/releases{/id}","created_at":"2014-09-09T22:41:37Z","updated_at":"2015-03-23T20:20:21Z","pushed_at":"2015-03-31T22:09:20Z","git_url":"git://github.com/valleyjo/orgman.git","ssh_url":"git@github.com:valleyjo/orgman.git","clone_url":"https://github.com/valleyjo/orgman.git","svn_url":"https://github.com/valleyjo/orgman","homepage":"http://orgman.herokuapp.com/","size":2033,"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":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/109"},"html":{"href":"https://github.com/valleyjo/orgman/pull/109"},"issue":{"href":"https://api.github.com/repos/valleyjo/orgman/issues/109"},"comments":{"href":"https://api.github.com/repos/valleyjo/orgman/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/valleyjo/orgman/statuses/2174b5ab7bcfeb4d7f52786e399eb2a854700404"}}}}