{"action":"created","comment":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/26155047","id":26155047,"diff_hunk":"@@ -23,12 +23,12 @@ def sort_direction\n   end\n \n   def restrict_access\n-    redirect_to session[:last_moudle] unless current_user.\n+    redirect_to current_user unless current_user.\n       roles.include?(badges_admin) || current_user.is_admin\n   end\n \n   def get_last_module","path":"app/controllers/admin/users_controller.rb","position":9,"original_position":9,"commit_id":"384a2fc2209c8490e09a08b294b14d32f55aa72b","original_commit_id":"384a2fc2209c8490e09a08b294b14d32f55aa72b","user":{"login":"mumoc","id":399229,"avatar_url":"https://avatars.githubusercontent.com/u/399229?v=3","gravatar_id":"","url":"https://api.github.com/users/mumoc","html_url":"https://github.com/mumoc","followers_url":"https://api.github.com/users/mumoc/followers","following_url":"https://api.github.com/users/mumoc/following{/other_user}","gists_url":"https://api.github.com/users/mumoc/gists{/gist_id}","starred_url":"https://api.github.com/users/mumoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumoc/subscriptions","organizations_url":"https://api.github.com/users/mumoc/orgs","repos_url":"https://api.github.com/users/mumoc/repos","events_url":"https://api.github.com/users/mumoc/events{/privacy}","received_events_url":"https://api.github.com/users/mumoc/received_events","type":"User","site_admin":false},"body":"you could call this method just as ```last_module``` ....","created_at":"2015-03-10T19:09:09Z","updated_at":"2015-03-10T19:09:09Z","html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/118#discussion_r26155047","pull_request_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/comments/26155047"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/118#discussion_r26155047"},"pull_request":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118","id":30311418,"html_url":"https://github.com/crowdint/kardex-crowdint-com/pull/118","diff_url":"https://github.com/crowdint/kardex-crowdint-com/pull/118.diff","patch_url":"https://github.com/crowdint/kardex-crowdint-com/pull/118.patch","issue_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/118","number":118,"state":"open","locked":false,"title":"Fixes small typo on users controller(admin)","user":{"login":"ingedmundo","id":1649055,"avatar_url":"https://avatars.githubusercontent.com/u/1649055?v=3","gravatar_id":"","url":"https://api.github.com/users/ingedmundo","html_url":"https://github.com/ingedmundo","followers_url":"https://api.github.com/users/ingedmundo/followers","following_url":"https://api.github.com/users/ingedmundo/following{/other_user}","gists_url":"https://api.github.com/users/ingedmundo/gists{/gist_id}","starred_url":"https://api.github.com/users/ingedmundo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingedmundo/subscriptions","organizations_url":"https://api.github.com/users/ingedmundo/orgs","repos_url":"https://api.github.com/users/ingedmundo/repos","events_url":"https://api.github.com/users/ingedmundo/events{/privacy}","received_events_url":"https://api.github.com/users/ingedmundo/received_events","type":"User","site_admin":false},"body":"Fixes a small typo on admin/users_controller.\r\nFixes a wrong url redirection, now it redirects to the users dashboard.","created_at":"2015-03-02T19:17:39Z","updated_at":"2015-03-10T19:09:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ca50222c17f485471f53eb810f94b81bcef580f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118/commits","review_comments_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118/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/118/comments","statuses_url":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/384a2fc2209c8490e09a08b294b14d32f55aa72b","head":{"label":"crowdint:fix_moudle_typo","ref":"fix_moudle_typo","sha":"384a2fc2209c8490e09a08b294b14d32f55aa72b","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":"2015-03-10T15:53:06Z","pushed_at":"2015-03-10T18:05:49Z","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":3824,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"crowdint:master","ref":"master","sha":"f7e8e454506dba94fc8facb53043047434a15bb6","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":"2015-03-10T15:53:06Z","pushed_at":"2015-03-10T18:05:49Z","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":3824,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118"},"html":{"href":"https://github.com/crowdint/kardex-crowdint-com/pull/118"},"issue":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/118"},"comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/pulls/118/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/118/commits"},"statuses":{"href":"https://api.github.com/repos/crowdint/kardex-crowdint-com/statuses/384a2fc2209c8490e09a08b294b14d32f55aa72b"}}}}