{"action":"created","comment":{"url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/comments/45339966","id":45339966,"diff_hunk":"@@ -6,10 +6,15 @@ class ApplicationController < ActionController::Base\n   before_action :configure_permitted_parameters, if: :devise_controller?\n \n   protected\n+    def after_sign_in_path_for(resource)\n+      if resource.class == Admin\n+        admin_dashboard_path\n+      end\n+    end\n \n-  def configure_permitted_parameters\n-    devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me) }\n-    devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:username, :email, :password, :remember_me) }\n-    devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:username, :email, :password, :password_confirmation, :current_password) }\n-  end\n+    def configure_permitted_parameters\n+      devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:username, :email, :password, :password_confirmation, :remember_me) }","path":"app/controllers/application_controller.rb","position":16,"original_position":16,"commit_id":"8732e3b56ff7db42635685a6a9dd94115aacaf4d","original_commit_id":"8732e3b56ff7db42635685a6a9dd94115aacaf4d","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. [131/80]","created_at":"2015-11-19T13:31:58Z","updated_at":"2015-11-19T13:31:58Z","html_url":"https://github.com/edenisn/imgur_clone/pull/18#discussion_r45339966","pull_request_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/comments/45339966"},"html":{"href":"https://github.com/edenisn/imgur_clone/pull/18#discussion_r45339966"},"pull_request":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18","id":51222195,"html_url":"https://github.com/edenisn/imgur_clone/pull/18","diff_url":"https://github.com/edenisn/imgur_clone/pull/18.diff","patch_url":"https://github.com/edenisn/imgur_clone/pull/18.patch","issue_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/18","number":18,"state":"open","locked":false,"title":"add default behaviour for after_sign_in for admin","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-19T13:31:55Z","updated_at":"2015-11-19T13:31:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b210c9ce77c1deec499f1ddece6bcae86a973ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18/commits","review_comments_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18/comments","review_comment_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/18/comments","statuses_url":"https://api.github.com/repos/edenisn/imgur_clone/statuses/8732e3b56ff7db42635685a6a9dd94115aacaf4d","head":{"label":"edenisn:redirect-path-after-sign-in-admin","ref":"redirect-path-after-sign-in-admin","sha":"8732e3b56ff7db42635685a6a9dd94115aacaf4d","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"repo":{"id":45415527,"name":"imgur_clone","full_name":"edenisn/imgur_clone","owner":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edenisn/imgur_clone","description":"image hosting","fork":false,"url":"https://api.github.com/repos/edenisn/imgur_clone","forks_url":"https://api.github.com/repos/edenisn/imgur_clone/forks","keys_url":"https://api.github.com/repos/edenisn/imgur_clone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenisn/imgur_clone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenisn/imgur_clone/teams","hooks_url":"https://api.github.com/repos/edenisn/imgur_clone/hooks","issue_events_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/events{/number}","events_url":"https://api.github.com/repos/edenisn/imgur_clone/events","assignees_url":"https://api.github.com/repos/edenisn/imgur_clone/assignees{/user}","branches_url":"https://api.github.com/repos/edenisn/imgur_clone/branches{/branch}","tags_url":"https://api.github.com/repos/edenisn/imgur_clone/tags","blobs_url":"https://api.github.com/repos/edenisn/imgur_clone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenisn/imgur_clone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenisn/imgur_clone/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenisn/imgur_clone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenisn/imgur_clone/statuses/{sha}","languages_url":"https://api.github.com/repos/edenisn/imgur_clone/languages","stargazers_url":"https://api.github.com/repos/edenisn/imgur_clone/stargazers","contributors_url":"https://api.github.com/repos/edenisn/imgur_clone/contributors","subscribers_url":"https://api.github.com/repos/edenisn/imgur_clone/subscribers","subscription_url":"https://api.github.com/repos/edenisn/imgur_clone/subscription","commits_url":"https://api.github.com/repos/edenisn/imgur_clone/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenisn/imgur_clone/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenisn/imgur_clone/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenisn/imgur_clone/contents/{+path}","compare_url":"https://api.github.com/repos/edenisn/imgur_clone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenisn/imgur_clone/merges","archive_url":"https://api.github.com/repos/edenisn/imgur_clone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenisn/imgur_clone/downloads","issues_url":"https://api.github.com/repos/edenisn/imgur_clone/issues{/number}","pulls_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls{/number}","milestones_url":"https://api.github.com/repos/edenisn/imgur_clone/milestones{/number}","notifications_url":"https://api.github.com/repos/edenisn/imgur_clone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenisn/imgur_clone/labels{/name}","releases_url":"https://api.github.com/repos/edenisn/imgur_clone/releases{/id}","created_at":"2015-11-02T19:05:07Z","updated_at":"2015-11-02T19:11:57Z","pushed_at":"2015-11-19T13:31:56Z","git_url":"git://github.com/edenisn/imgur_clone.git","ssh_url":"git@github.com:edenisn/imgur_clone.git","clone_url":"https://github.com/edenisn/imgur_clone.git","svn_url":"https://github.com/edenisn/imgur_clone","homepage":null,"size":8187,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"edenisn:master","ref":"master","sha":"cfd6f0d9089d1fdaa40a13a4eb138590e571ca2d","user":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"repo":{"id":45415527,"name":"imgur_clone","full_name":"edenisn/imgur_clone","owner":{"login":"edenisn","id":791349,"avatar_url":"https://avatars.githubusercontent.com/u/791349?v=3","gravatar_id":"","url":"https://api.github.com/users/edenisn","html_url":"https://github.com/edenisn","followers_url":"https://api.github.com/users/edenisn/followers","following_url":"https://api.github.com/users/edenisn/following{/other_user}","gists_url":"https://api.github.com/users/edenisn/gists{/gist_id}","starred_url":"https://api.github.com/users/edenisn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenisn/subscriptions","organizations_url":"https://api.github.com/users/edenisn/orgs","repos_url":"https://api.github.com/users/edenisn/repos","events_url":"https://api.github.com/users/edenisn/events{/privacy}","received_events_url":"https://api.github.com/users/edenisn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edenisn/imgur_clone","description":"image hosting","fork":false,"url":"https://api.github.com/repos/edenisn/imgur_clone","forks_url":"https://api.github.com/repos/edenisn/imgur_clone/forks","keys_url":"https://api.github.com/repos/edenisn/imgur_clone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenisn/imgur_clone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenisn/imgur_clone/teams","hooks_url":"https://api.github.com/repos/edenisn/imgur_clone/hooks","issue_events_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/events{/number}","events_url":"https://api.github.com/repos/edenisn/imgur_clone/events","assignees_url":"https://api.github.com/repos/edenisn/imgur_clone/assignees{/user}","branches_url":"https://api.github.com/repos/edenisn/imgur_clone/branches{/branch}","tags_url":"https://api.github.com/repos/edenisn/imgur_clone/tags","blobs_url":"https://api.github.com/repos/edenisn/imgur_clone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenisn/imgur_clone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenisn/imgur_clone/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenisn/imgur_clone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenisn/imgur_clone/statuses/{sha}","languages_url":"https://api.github.com/repos/edenisn/imgur_clone/languages","stargazers_url":"https://api.github.com/repos/edenisn/imgur_clone/stargazers","contributors_url":"https://api.github.com/repos/edenisn/imgur_clone/contributors","subscribers_url":"https://api.github.com/repos/edenisn/imgur_clone/subscribers","subscription_url":"https://api.github.com/repos/edenisn/imgur_clone/subscription","commits_url":"https://api.github.com/repos/edenisn/imgur_clone/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenisn/imgur_clone/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenisn/imgur_clone/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenisn/imgur_clone/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenisn/imgur_clone/contents/{+path}","compare_url":"https://api.github.com/repos/edenisn/imgur_clone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenisn/imgur_clone/merges","archive_url":"https://api.github.com/repos/edenisn/imgur_clone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenisn/imgur_clone/downloads","issues_url":"https://api.github.com/repos/edenisn/imgur_clone/issues{/number}","pulls_url":"https://api.github.com/repos/edenisn/imgur_clone/pulls{/number}","milestones_url":"https://api.github.com/repos/edenisn/imgur_clone/milestones{/number}","notifications_url":"https://api.github.com/repos/edenisn/imgur_clone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenisn/imgur_clone/labels{/name}","releases_url":"https://api.github.com/repos/edenisn/imgur_clone/releases{/id}","created_at":"2015-11-02T19:05:07Z","updated_at":"2015-11-02T19:11:57Z","pushed_at":"2015-11-19T13:31:56Z","git_url":"git://github.com/edenisn/imgur_clone.git","ssh_url":"git@github.com:edenisn/imgur_clone.git","clone_url":"https://github.com/edenisn/imgur_clone.git","svn_url":"https://github.com/edenisn/imgur_clone","homepage":null,"size":8187,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18"},"html":{"href":"https://github.com/edenisn/imgur_clone/pull/18"},"issue":{"href":"https://api.github.com/repos/edenisn/imgur_clone/issues/18"},"comments":{"href":"https://api.github.com/repos/edenisn/imgur_clone/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edenisn/imgur_clone/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/edenisn/imgur_clone/statuses/8732e3b56ff7db42635685a6a9dd94115aacaf4d"}}}}