{"action":"created","comment":{"url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/comments/27545703","id":27545703,"diff_hunk":"@@ -0,0 +1,36 @@\n+class ConfirmationsController < Devise::ConfirmationsController\n+  def show\n+    if params[:confirmation_token].present?\n+      @original_token = params[:confirmation_token]\n+    elsif params[resource_name].try(:[], :confirmation_token).present?\n+      @original_token = params[resource_name][:confirmation_token]\n+    end\n+\n+    self.resource = resource_class.find_by_confirmation_token(\n+        Devise.token_generator.digest(self, :confirmation_token, @original_token)\n+    )\n+\n+    super if resource.nil? or resource.confirmed?\n+  end\n+\n+  def confirm\n+    @original_token = params[resource_name].try(:[], :confirmation_token)\n+    digested_token = Devise.token_generator.digest(self, :confirmation_token, @original_token)\n+    self.resource = resource_class.find_by_confirmation_token! digested_token\n+    resource.assign_attributes(permitted_params) unless params[resource_name].nil?\n+\n+    if resource.valid? && resource.password_match?\n+      self.resource.confirm!\n+      set_flash_message :notice, :confirmed\n+      sign_in_and_redirect resource_name, resource\n+    else\n+      render :action => 'show'","path":"app/controllers/confirmations_controller.rb","position":27,"original_position":27,"commit_id":"0180b1c6e9ac0fda64bebaf79f5b07ea5db9a1a8","original_commit_id":"0180b1c6e9ac0fda64bebaf79f5b07ea5db9a1a8","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":"Use the new Ruby 1.9 hash syntax.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-04-01T05:24:17Z","updated_at":"2015-04-01T05:24:17Z","html_url":"https://github.com/brunoocasali/interactive-event/pull/5#discussion_r27545703","pull_request_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/comments/27545703"},"html":{"href":"https://github.com/brunoocasali/interactive-event/pull/5#discussion_r27545703"},"pull_request":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5","id":32193489,"html_url":"https://github.com/brunoocasali/interactive-event/pull/5","diff_url":"https://github.com/brunoocasali/interactive-event/pull/5.diff","patch_url":"https://github.com/brunoocasali/interactive-event/pull/5.patch","issue_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/5","number":5,"state":"open","locked":false,"title":"Devise!","user":{"login":"brunoocasali","id":4116980,"avatar_url":"https://avatars.githubusercontent.com/u/4116980?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoocasali","html_url":"https://github.com/brunoocasali","followers_url":"https://api.github.com/users/brunoocasali/followers","following_url":"https://api.github.com/users/brunoocasali/following{/other_user}","gists_url":"https://api.github.com/users/brunoocasali/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoocasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoocasali/subscriptions","organizations_url":"https://api.github.com/users/brunoocasali/orgs","repos_url":"https://api.github.com/users/brunoocasali/repos","events_url":"https://api.github.com/users/brunoocasali/events{/privacy}","received_events_url":"https://api.github.com/users/brunoocasali/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-30T01:58:20Z","updated_at":"2015-04-01T05:24:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87c1e75fbc6f12be182be2e333dfde1d5f8d8074","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5/commits","review_comments_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5/comments","review_comment_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/5/comments","statuses_url":"https://api.github.com/repos/brunoocasali/interactive-event/statuses/0180b1c6e9ac0fda64bebaf79f5b07ea5db9a1a8","head":{"label":"brunoocasali:feature/devise","ref":"feature/devise","sha":"0180b1c6e9ac0fda64bebaf79f5b07ea5db9a1a8","user":{"login":"brunoocasali","id":4116980,"avatar_url":"https://avatars.githubusercontent.com/u/4116980?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoocasali","html_url":"https://github.com/brunoocasali","followers_url":"https://api.github.com/users/brunoocasali/followers","following_url":"https://api.github.com/users/brunoocasali/following{/other_user}","gists_url":"https://api.github.com/users/brunoocasali/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoocasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoocasali/subscriptions","organizations_url":"https://api.github.com/users/brunoocasali/orgs","repos_url":"https://api.github.com/users/brunoocasali/repos","events_url":"https://api.github.com/users/brunoocasali/events{/privacy}","received_events_url":"https://api.github.com/users/brunoocasali/received_events","type":"User","site_admin":false},"repo":{"id":31327840,"name":"interactive-event","full_name":"brunoocasali/interactive-event","owner":{"login":"brunoocasali","id":4116980,"avatar_url":"https://avatars.githubusercontent.com/u/4116980?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoocasali","html_url":"https://github.com/brunoocasali","followers_url":"https://api.github.com/users/brunoocasali/followers","following_url":"https://api.github.com/users/brunoocasali/following{/other_user}","gists_url":"https://api.github.com/users/brunoocasali/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoocasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoocasali/subscriptions","organizations_url":"https://api.github.com/users/brunoocasali/orgs","repos_url":"https://api.github.com/users/brunoocasali/repos","events_url":"https://api.github.com/users/brunoocasali/events{/privacy}","received_events_url":"https://api.github.com/users/brunoocasali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunoocasali/interactive-event","description":"Becoming more interactive and memorable social events","fork":false,"url":"https://api.github.com/repos/brunoocasali/interactive-event","forks_url":"https://api.github.com/repos/brunoocasali/interactive-event/forks","keys_url":"https://api.github.com/repos/brunoocasali/interactive-event/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunoocasali/interactive-event/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunoocasali/interactive-event/teams","hooks_url":"https://api.github.com/repos/brunoocasali/interactive-event/hooks","issue_events_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/events{/number}","events_url":"https://api.github.com/repos/brunoocasali/interactive-event/events","assignees_url":"https://api.github.com/repos/brunoocasali/interactive-event/assignees{/user}","branches_url":"https://api.github.com/repos/brunoocasali/interactive-event/branches{/branch}","tags_url":"https://api.github.com/repos/brunoocasali/interactive-event/tags","blobs_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunoocasali/interactive-event/statuses/{sha}","languages_url":"https://api.github.com/repos/brunoocasali/interactive-event/languages","stargazers_url":"https://api.github.com/repos/brunoocasali/interactive-event/stargazers","contributors_url":"https://api.github.com/repos/brunoocasali/interactive-event/contributors","subscribers_url":"https://api.github.com/repos/brunoocasali/interactive-event/subscribers","subscription_url":"https://api.github.com/repos/brunoocasali/interactive-event/subscription","commits_url":"https://api.github.com/repos/brunoocasali/interactive-event/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunoocasali/interactive-event/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunoocasali/interactive-event/contents/{+path}","compare_url":"https://api.github.com/repos/brunoocasali/interactive-event/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunoocasali/interactive-event/merges","archive_url":"https://api.github.com/repos/brunoocasali/interactive-event/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunoocasali/interactive-event/downloads","issues_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues{/number}","pulls_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls{/number}","milestones_url":"https://api.github.com/repos/brunoocasali/interactive-event/milestones{/number}","notifications_url":"https://api.github.com/repos/brunoocasali/interactive-event/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunoocasali/interactive-event/labels{/name}","releases_url":"https://api.github.com/repos/brunoocasali/interactive-event/releases{/id}","created_at":"2015-02-25T18:02:02Z","updated_at":"2015-03-28T03:55:23Z","pushed_at":"2015-04-01T05:24:04Z","git_url":"git://github.com/brunoocasali/interactive-event.git","ssh_url":"git@github.com:brunoocasali/interactive-event.git","clone_url":"https://github.com/brunoocasali/interactive-event.git","svn_url":"https://github.com/brunoocasali/interactive-event","homepage":"https://telao.herokuapp.com/","size":2352,"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":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"brunoocasali:master","ref":"master","sha":"bc70c977bcddae597c8fb9f8c3ed8f79c558926b","user":{"login":"brunoocasali","id":4116980,"avatar_url":"https://avatars.githubusercontent.com/u/4116980?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoocasali","html_url":"https://github.com/brunoocasali","followers_url":"https://api.github.com/users/brunoocasali/followers","following_url":"https://api.github.com/users/brunoocasali/following{/other_user}","gists_url":"https://api.github.com/users/brunoocasali/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoocasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoocasali/subscriptions","organizations_url":"https://api.github.com/users/brunoocasali/orgs","repos_url":"https://api.github.com/users/brunoocasali/repos","events_url":"https://api.github.com/users/brunoocasali/events{/privacy}","received_events_url":"https://api.github.com/users/brunoocasali/received_events","type":"User","site_admin":false},"repo":{"id":31327840,"name":"interactive-event","full_name":"brunoocasali/interactive-event","owner":{"login":"brunoocasali","id":4116980,"avatar_url":"https://avatars.githubusercontent.com/u/4116980?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoocasali","html_url":"https://github.com/brunoocasali","followers_url":"https://api.github.com/users/brunoocasali/followers","following_url":"https://api.github.com/users/brunoocasali/following{/other_user}","gists_url":"https://api.github.com/users/brunoocasali/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoocasali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoocasali/subscriptions","organizations_url":"https://api.github.com/users/brunoocasali/orgs","repos_url":"https://api.github.com/users/brunoocasali/repos","events_url":"https://api.github.com/users/brunoocasali/events{/privacy}","received_events_url":"https://api.github.com/users/brunoocasali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunoocasali/interactive-event","description":"Becoming more interactive and memorable social events","fork":false,"url":"https://api.github.com/repos/brunoocasali/interactive-event","forks_url":"https://api.github.com/repos/brunoocasali/interactive-event/forks","keys_url":"https://api.github.com/repos/brunoocasali/interactive-event/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunoocasali/interactive-event/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunoocasali/interactive-event/teams","hooks_url":"https://api.github.com/repos/brunoocasali/interactive-event/hooks","issue_events_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/events{/number}","events_url":"https://api.github.com/repos/brunoocasali/interactive-event/events","assignees_url":"https://api.github.com/repos/brunoocasali/interactive-event/assignees{/user}","branches_url":"https://api.github.com/repos/brunoocasali/interactive-event/branches{/branch}","tags_url":"https://api.github.com/repos/brunoocasali/interactive-event/tags","blobs_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunoocasali/interactive-event/statuses/{sha}","languages_url":"https://api.github.com/repos/brunoocasali/interactive-event/languages","stargazers_url":"https://api.github.com/repos/brunoocasali/interactive-event/stargazers","contributors_url":"https://api.github.com/repos/brunoocasali/interactive-event/contributors","subscribers_url":"https://api.github.com/repos/brunoocasali/interactive-event/subscribers","subscription_url":"https://api.github.com/repos/brunoocasali/interactive-event/subscription","commits_url":"https://api.github.com/repos/brunoocasali/interactive-event/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunoocasali/interactive-event/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunoocasali/interactive-event/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunoocasali/interactive-event/contents/{+path}","compare_url":"https://api.github.com/repos/brunoocasali/interactive-event/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunoocasali/interactive-event/merges","archive_url":"https://api.github.com/repos/brunoocasali/interactive-event/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunoocasali/interactive-event/downloads","issues_url":"https://api.github.com/repos/brunoocasali/interactive-event/issues{/number}","pulls_url":"https://api.github.com/repos/brunoocasali/interactive-event/pulls{/number}","milestones_url":"https://api.github.com/repos/brunoocasali/interactive-event/milestones{/number}","notifications_url":"https://api.github.com/repos/brunoocasali/interactive-event/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunoocasali/interactive-event/labels{/name}","releases_url":"https://api.github.com/repos/brunoocasali/interactive-event/releases{/id}","created_at":"2015-02-25T18:02:02Z","updated_at":"2015-03-28T03:55:23Z","pushed_at":"2015-04-01T05:24:04Z","git_url":"git://github.com/brunoocasali/interactive-event.git","ssh_url":"git@github.com:brunoocasali/interactive-event.git","clone_url":"https://github.com/brunoocasali/interactive-event.git","svn_url":"https://github.com/brunoocasali/interactive-event","homepage":"https://telao.herokuapp.com/","size":2352,"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":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5"},"html":{"href":"https://github.com/brunoocasali/interactive-event/pull/5"},"issue":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/issues/5"},"comments":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/brunoocasali/interactive-event/statuses/0180b1c6e9ac0fda64bebaf79f5b07ea5db9a1a8"}}}}