{"action":"created","comment":{"url":"https://api.github.com/repos/csm123/starburst/pulls/comments/22709533","id":22709533,"diff_hunk":"@@ -1,11 +1,13 @@\n module Starburst\n   module AnnouncementsHelper\n-  \tdef current_announcement\n-\t\tif (defined? current_user) && current_user\n-    \t\t@current_announcement ||= Announcement.current(current_user)\n-\t\telse\n-\t\t\tfalse\n-\t\tend\n-  \tend\n+\n+    def current_announcement\n+      if (defined? Starburst.current_user_method) && send(Starburst.current_user_method)","path":"app/helpers/starburst/announcements_helper.rb","position":12,"original_position":12,"commit_id":"caedd2872c57b3bc13e07bcf90d0c9adf1794b4b","original_commit_id":"caedd2872c57b3bc13e07bcf90d0c9adf1794b4b","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. [88/80]","created_at":"2015-01-09T10:33:55Z","updated_at":"2015-01-09T10:33:55Z","html_url":"https://github.com/csm123/starburst/pull/5#discussion_r22709533","pull_request_url":"https://api.github.com/repos/csm123/starburst/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/csm123/starburst/pulls/comments/22709533"},"html":{"href":"https://github.com/csm123/starburst/pull/5#discussion_r22709533"},"pull_request":{"href":"https://api.github.com/repos/csm123/starburst/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/csm123/starburst/pulls/5","id":27091532,"html_url":"https://github.com/csm123/starburst/pull/5","diff_url":"https://github.com/csm123/starburst/pull/5.diff","patch_url":"https://github.com/csm123/starburst/pull/5.patch","issue_url":"https://api.github.com/repos/csm123/starburst/issues/5","number":5,"state":"open","locked":false,"title":"replace current_user with configured current_user_method","user":{"login":"danieldraper","id":1016423,"avatar_url":"https://avatars.githubusercontent.com/u/1016423?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldraper","html_url":"https://github.com/danieldraper","followers_url":"https://api.github.com/users/danieldraper/followers","following_url":"https://api.github.com/users/danieldraper/following{/other_user}","gists_url":"https://api.github.com/users/danieldraper/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldraper/subscriptions","organizations_url":"https://api.github.com/users/danieldraper/orgs","repos_url":"https://api.github.com/users/danieldraper/repos","events_url":"https://api.github.com/users/danieldraper/events{/privacy}","received_events_url":"https://api.github.com/users/danieldraper/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T10:33:50Z","updated_at":"2015-01-09T10:33:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf722c9c42fcb5bcb4536f10c5db9755ef9ef7aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/csm123/starburst/pulls/5/commits","review_comments_url":"https://api.github.com/repos/csm123/starburst/pulls/5/comments","review_comment_url":"https://api.github.com/repos/csm123/starburst/pulls/comments/{number}","comments_url":"https://api.github.com/repos/csm123/starburst/issues/5/comments","statuses_url":"https://api.github.com/repos/csm123/starburst/statuses/caedd2872c57b3bc13e07bcf90d0c9adf1794b4b","head":{"label":"danieldraper:master","ref":"master","sha":"caedd2872c57b3bc13e07bcf90d0c9adf1794b4b","user":{"login":"danieldraper","id":1016423,"avatar_url":"https://avatars.githubusercontent.com/u/1016423?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldraper","html_url":"https://github.com/danieldraper","followers_url":"https://api.github.com/users/danieldraper/followers","following_url":"https://api.github.com/users/danieldraper/following{/other_user}","gists_url":"https://api.github.com/users/danieldraper/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldraper/subscriptions","organizations_url":"https://api.github.com/users/danieldraper/orgs","repos_url":"https://api.github.com/users/danieldraper/repos","events_url":"https://api.github.com/users/danieldraper/events{/privacy}","received_events_url":"https://api.github.com/users/danieldraper/received_events","type":"User","site_admin":false},"repo":{"id":29011726,"name":"starburst","full_name":"danieldraper/starburst","owner":{"login":"danieldraper","id":1016423,"avatar_url":"https://avatars.githubusercontent.com/u/1016423?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldraper","html_url":"https://github.com/danieldraper","followers_url":"https://api.github.com/users/danieldraper/followers","following_url":"https://api.github.com/users/danieldraper/following{/other_user}","gists_url":"https://api.github.com/users/danieldraper/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldraper/subscriptions","organizations_url":"https://api.github.com/users/danieldraper/orgs","repos_url":"https://api.github.com/users/danieldraper/repos","events_url":"https://api.github.com/users/danieldraper/events{/privacy}","received_events_url":"https://api.github.com/users/danieldraper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danieldraper/starburst","description":"In-app announcements to users in your Rails app","fork":true,"url":"https://api.github.com/repos/danieldraper/starburst","forks_url":"https://api.github.com/repos/danieldraper/starburst/forks","keys_url":"https://api.github.com/repos/danieldraper/starburst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danieldraper/starburst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danieldraper/starburst/teams","hooks_url":"https://api.github.com/repos/danieldraper/starburst/hooks","issue_events_url":"https://api.github.com/repos/danieldraper/starburst/issues/events{/number}","events_url":"https://api.github.com/repos/danieldraper/starburst/events","assignees_url":"https://api.github.com/repos/danieldraper/starburst/assignees{/user}","branches_url":"https://api.github.com/repos/danieldraper/starburst/branches{/branch}","tags_url":"https://api.github.com/repos/danieldraper/starburst/tags","blobs_url":"https://api.github.com/repos/danieldraper/starburst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danieldraper/starburst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danieldraper/starburst/git/refs{/sha}","trees_url":"https://api.github.com/repos/danieldraper/starburst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danieldraper/starburst/statuses/{sha}","languages_url":"https://api.github.com/repos/danieldraper/starburst/languages","stargazers_url":"https://api.github.com/repos/danieldraper/starburst/stargazers","contributors_url":"https://api.github.com/repos/danieldraper/starburst/contributors","subscribers_url":"https://api.github.com/repos/danieldraper/starburst/subscribers","subscription_url":"https://api.github.com/repos/danieldraper/starburst/subscription","commits_url":"https://api.github.com/repos/danieldraper/starburst/commits{/sha}","git_commits_url":"https://api.github.com/repos/danieldraper/starburst/git/commits{/sha}","comments_url":"https://api.github.com/repos/danieldraper/starburst/comments{/number}","issue_comment_url":"https://api.github.com/repos/danieldraper/starburst/issues/comments/{number}","contents_url":"https://api.github.com/repos/danieldraper/starburst/contents/{+path}","compare_url":"https://api.github.com/repos/danieldraper/starburst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danieldraper/starburst/merges","archive_url":"https://api.github.com/repos/danieldraper/starburst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danieldraper/starburst/downloads","issues_url":"https://api.github.com/repos/danieldraper/starburst/issues{/number}","pulls_url":"https://api.github.com/repos/danieldraper/starburst/pulls{/number}","milestones_url":"https://api.github.com/repos/danieldraper/starburst/milestones{/number}","notifications_url":"https://api.github.com/repos/danieldraper/starburst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danieldraper/starburst/labels{/name}","releases_url":"https://api.github.com/repos/danieldraper/starburst/releases{/id}","created_at":"2015-01-09T10:23:02Z","updated_at":"2015-01-09T10:32:20Z","pushed_at":"2015-01-09T10:32:19Z","git_url":"git://github.com/danieldraper/starburst.git","ssh_url":"git@github.com:danieldraper/starburst.git","clone_url":"https://github.com/danieldraper/starburst.git","svn_url":"https://github.com/danieldraper/starburst","homepage":"","size":549,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"csm123:master","ref":"master","sha":"1037968d4746e880ad4c601c2599aea98350b195","user":{"login":"csm123","id":2606701,"avatar_url":"https://avatars.githubusercontent.com/u/2606701?v=3","gravatar_id":"","url":"https://api.github.com/users/csm123","html_url":"https://github.com/csm123","followers_url":"https://api.github.com/users/csm123/followers","following_url":"https://api.github.com/users/csm123/following{/other_user}","gists_url":"https://api.github.com/users/csm123/gists{/gist_id}","starred_url":"https://api.github.com/users/csm123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csm123/subscriptions","organizations_url":"https://api.github.com/users/csm123/orgs","repos_url":"https://api.github.com/users/csm123/repos","events_url":"https://api.github.com/users/csm123/events{/privacy}","received_events_url":"https://api.github.com/users/csm123/received_events","type":"User","site_admin":false},"repo":{"id":24802725,"name":"starburst","full_name":"csm123/starburst","owner":{"login":"csm123","id":2606701,"avatar_url":"https://avatars.githubusercontent.com/u/2606701?v=3","gravatar_id":"","url":"https://api.github.com/users/csm123","html_url":"https://github.com/csm123","followers_url":"https://api.github.com/users/csm123/followers","following_url":"https://api.github.com/users/csm123/following{/other_user}","gists_url":"https://api.github.com/users/csm123/gists{/gist_id}","starred_url":"https://api.github.com/users/csm123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csm123/subscriptions","organizations_url":"https://api.github.com/users/csm123/orgs","repos_url":"https://api.github.com/users/csm123/repos","events_url":"https://api.github.com/users/csm123/events{/privacy}","received_events_url":"https://api.github.com/users/csm123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/csm123/starburst","description":"In-app announcements to users in your Rails app","fork":false,"url":"https://api.github.com/repos/csm123/starburst","forks_url":"https://api.github.com/repos/csm123/starburst/forks","keys_url":"https://api.github.com/repos/csm123/starburst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csm123/starburst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csm123/starburst/teams","hooks_url":"https://api.github.com/repos/csm123/starburst/hooks","issue_events_url":"https://api.github.com/repos/csm123/starburst/issues/events{/number}","events_url":"https://api.github.com/repos/csm123/starburst/events","assignees_url":"https://api.github.com/repos/csm123/starburst/assignees{/user}","branches_url":"https://api.github.com/repos/csm123/starburst/branches{/branch}","tags_url":"https://api.github.com/repos/csm123/starburst/tags","blobs_url":"https://api.github.com/repos/csm123/starburst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csm123/starburst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csm123/starburst/git/refs{/sha}","trees_url":"https://api.github.com/repos/csm123/starburst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csm123/starburst/statuses/{sha}","languages_url":"https://api.github.com/repos/csm123/starburst/languages","stargazers_url":"https://api.github.com/repos/csm123/starburst/stargazers","contributors_url":"https://api.github.com/repos/csm123/starburst/contributors","subscribers_url":"https://api.github.com/repos/csm123/starburst/subscribers","subscription_url":"https://api.github.com/repos/csm123/starburst/subscription","commits_url":"https://api.github.com/repos/csm123/starburst/commits{/sha}","git_commits_url":"https://api.github.com/repos/csm123/starburst/git/commits{/sha}","comments_url":"https://api.github.com/repos/csm123/starburst/comments{/number}","issue_comment_url":"https://api.github.com/repos/csm123/starburst/issues/comments/{number}","contents_url":"https://api.github.com/repos/csm123/starburst/contents/{+path}","compare_url":"https://api.github.com/repos/csm123/starburst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csm123/starburst/merges","archive_url":"https://api.github.com/repos/csm123/starburst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csm123/starburst/downloads","issues_url":"https://api.github.com/repos/csm123/starburst/issues{/number}","pulls_url":"https://api.github.com/repos/csm123/starburst/pulls{/number}","milestones_url":"https://api.github.com/repos/csm123/starburst/milestones{/number}","notifications_url":"https://api.github.com/repos/csm123/starburst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csm123/starburst/labels{/name}","releases_url":"https://api.github.com/repos/csm123/starburst/releases{/id}","created_at":"2014-10-04T21:58:27Z","updated_at":"2015-01-07T21:49:54Z","pushed_at":"2014-12-21T22:53:14Z","git_url":"git://github.com/csm123/starburst.git","ssh_url":"git@github.com:csm123/starburst.git","clone_url":"https://github.com/csm123/starburst.git","svn_url":"https://github.com/csm123/starburst","homepage":"","size":549,"stargazers_count":214,"watchers_count":214,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":214,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/csm123/starburst/pulls/5"},"html":{"href":"https://github.com/csm123/starburst/pull/5"},"issue":{"href":"https://api.github.com/repos/csm123/starburst/issues/5"},"comments":{"href":"https://api.github.com/repos/csm123/starburst/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/csm123/starburst/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/csm123/starburst/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/csm123/starburst/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/csm123/starburst/statuses/caedd2872c57b3bc13e07bcf90d0c9adf1794b4b"}}}}