GitHub PullRequestReviewCommentEvent at 2014-11-12 23:18:29
Repository: kardex-crowdint-com
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/20260491","id":20260491,"diff_hunk":"@@ -0,0 +1,18 @@\n+BadgesEngine::ApplicationController.class_eval do\n+ before_filter :restrict_access, :get_last_module\n+\n+  private\n+\n+  def restrict_access   \n+    redirect_to session[:last_moudle] unless current_user.roles.include?(badges_admin) or\n+      current_user.is_admin\n+  end\n+\n+  def get_last_module\n+    session[:last_moudle] = request.url\n+  end\n+\n+  def badges_admin\n+    Role.find_by_name('badges admin')","path":"app/decorators/controllers/badges_engine/application_controller_decorator.rb","position":16,"original_position":16,"commit_id":"4c68297c601f1bd3b38d252a2b9e54b485c3682f","original_commit_id":"4c68297c601f1bd3b38d252a2b9e54b485c3682f","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2014-11-12T23:18:29Z","updated_at":"2014-11-12T23:18:29Z","html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/101#discussion_r20260491","pull_request_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/20260491"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/101#discussion_r20260491"},"pull_request":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101","id":24333806,"html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/101","diff_url":"https://github.com/crowdint/kardex-crowdint-com/pull/101.diff","patch_url":"https://github.com/crowdint/kardex-crowdint-com/pull/101.patch","issue_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/101","number":101,"state":"open","locked":false,"title":"Feature/admin modules implementation","user":{"login":"jmoralesc","id":7585961,"avatar_url":"https://avatars.githubusercontent.com/u/7585961?v=3","gravatar_id":"","url":"https://api.github.com/users/jmoralesc","html_url":"https://github.com/jmoralesc","followers_url":"https://api.github.com/users/jmoralesc/followers","following_url":"https://api.github.com/users/jmoralesc/following{/other_user}","gists_url":"https://api.github.com/users/jmoralesc/gists{/gist_id}","starred_url":"https://api.github.com/users/jmoralesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmoralesc/subscriptions","organizations_url":"https://api.github.com/users/jmoralesc/orgs","repos_url":"https://api.github.com/users/jmoralesc/repos","events_url":"https://api.github.com/users/jmoralesc/events{/privacy}","received_events_url":"https://api.github.com/users/jmoralesc/received_events","type":"User","site_admin":false},"body":"Add logic for modules admins\r\nUpdate views to allow module admins","created_at":"2014-11-12T23:18:24Z","updated_at":"2014-11-12T23:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d40d425f610768a025bfc3144661adea187b6a5e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101/commits","review_comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101/comments","review_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/{number}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/101/comments","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/4c68297c601f1bd3b38d252a2b9e54b485c3682f","head":{"label":"crowdint:feature/admin-modules-implementation","ref":"feature/admin-modules-implementation","sha":"4c68297c601f1bd3b38d252a2b9e54b485c3682f","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":19990761,"name":"kardex-crowdint-com","full_name":"crowdint/kardex-crowdint-com","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/kardex-crowdint-com","description":"Organization members kardex score card","fork":false,"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com","forks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/forks","keys_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/teams","hooks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/hooks","issue_events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/events","assignees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/tags","blobs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/languages","stargazers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/stargazers","contributors_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contributors","subscribers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscribers","subscription_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscription","commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/merges","archive_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/downloads","issues_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/releases{/id}","created_at":"2014-05-20T17:39:03Z","updated_at":"2014-09-09T20:03:10Z","pushed_at":"2014-11-12T23:16:40Z","git_url":"git://github.com/crowdint/kardex-crowdint-com.git","ssh_url":"git@github.com:crowdint/kardex-crowdint-com.git","clone_url":"https://github.com/crowdint/kardex-crowdint-com.git","svn_url":"https://github.com/crowdint/kardex-crowdint-com","homepage":"","size":5303,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"crowdint:master","ref":"master","sha":"90b1c8503c74bec424686d39f275b7ddaeacfaee","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":19990761,"name":"kardex-crowdint-com","full_name":"crowdint/kardex-crowdint-com","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/kardex-crowdint-com","description":"Organization members kardex score card","fork":false,"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com","forks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/forks","keys_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/teams","hooks_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/hooks","issue_events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/events","assignees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/tags","blobs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/languages","stargazers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/stargazers","contributors_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contributors","subscribers_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscribers","subscription_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/subscription","commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/merges","archive_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/downloads","issues_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/releases{/id}","created_at":"2014-05-20T17:39:03Z","updated_at":"2014-09-09T20:03:10Z","pushed_at":"2014-11-12T23:16:40Z","git_url":"git://github.com/crowdint/kardex-crowdint-com.git","ssh_url":"git@github.com:crowdint/kardex-crowdint-com.git","clone_url":"https://github.com/crowdint/kardex-crowdint-com.git","svn_url":"https://github.com/crowdint/kardex-crowdint-com","homepage":"","size":5303,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/101"},"issue":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/101"},"comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/4c68297c601f1bd3b38d252a2b9e54b485c3682f"}}}}