{"action":"created","comment":{"url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/comments/205495560","pull_request_review_id":140775790,"id":205495560,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQ5NTU2MA==","diff_hunk":"@@ -0,0 +1,27 @@\n+class FamiliesController < ApplicationController\n+  def new\n+    @family = Family.new\n+  end\n+\n+  def create\n+    @family = Family.new(family_params)\n+    if @family.save\n+      current_user.update(family: @family)\n+      flash[:notice] = 'Familia Cadastrada com Sucesso!'\n+      redirect_to family_path(@family)\n+    else\n+      render 'new'\n+    end\n+  end\n+\n+  def show\n+    @family = Family.find(params[:id])","path":"app/controllers/families_controller.rb","position":18,"original_position":18,"commit_id":"cad9e4a34b437e5a470d922b9d1fe9efaf4f3ba8","original_commit_id":"cad9e4a34b437e5a470d922b9d1fe9efaf4f3ba8","user":{"login":"HenriqueMorato","id":9326123,"node_id":"MDQ6VXNlcjkzMjYxMjM=","avatar_url":"https://avatars3.githubusercontent.com/u/9326123?v=4","gravatar_id":"","url":"https://api.github.com/users/HenriqueMorato","html_url":"https://github.com/HenriqueMorato","followers_url":"https://api.github.com/users/HenriqueMorato/followers","following_url":"https://api.github.com/users/HenriqueMorato/following{/other_user}","gists_url":"https://api.github.com/users/HenriqueMorato/gists{/gist_id}","starred_url":"https://api.github.com/users/HenriqueMorato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenriqueMorato/subscriptions","organizations_url":"https://api.github.com/users/HenriqueMorato/orgs","repos_url":"https://api.github.com/users/HenriqueMorato/repos","events_url":"https://api.github.com/users/HenriqueMorato/events{/privacy}","received_events_url":"https://api.github.com/users/HenriqueMorato/received_events","type":"User","site_admin":false},"body":"Seria legal ter um teste pra verificar se o usuário tá vendo a familia dele mesmo ou se pode ver de outra pessoa.","created_at":"2018-07-26T15:12:38Z","updated_at":"2018-07-26T15:12:38Z","html_url":"https://github.com/LilianeBifano/financasemfamilia/pull/6#discussion_r205495560","pull_request_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/comments/205495560"},"html":{"href":"https://github.com/LilianeBifano/financasemfamilia/pull/6#discussion_r205495560"},"pull_request":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6","id":204000168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MDAwMTY4","html_url":"https://github.com/LilianeBifano/financasemfamilia/pull/6","diff_url":"https://github.com/LilianeBifano/financasemfamilia/pull/6.diff","patch_url":"https://github.com/LilianeBifano/financasemfamilia/pull/6.patch","issue_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/6","number":6,"state":"open","locked":false,"title":"Cadastrar familia","user":{"login":"mvbvieira","id":28330930,"node_id":"MDQ6VXNlcjI4MzMwOTMw","avatar_url":"https://avatars1.githubusercontent.com/u/28330930?v=4","gravatar_id":"","url":"https://api.github.com/users/mvbvieira","html_url":"https://github.com/mvbvieira","followers_url":"https://api.github.com/users/mvbvieira/followers","following_url":"https://api.github.com/users/mvbvieira/following{/other_user}","gists_url":"https://api.github.com/users/mvbvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/mvbvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvbvieira/subscriptions","organizations_url":"https://api.github.com/users/mvbvieira/orgs","repos_url":"https://api.github.com/users/mvbvieira/repos","events_url":"https://api.github.com/users/mvbvieira/events{/privacy}","received_events_url":"https://api.github.com/users/mvbvieira/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-26T00:44:16Z","updated_at":"2018-07-26T15:12:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6/commits","review_comments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6/comments","review_comment_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/6/comments","statuses_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/statuses/cad9e4a34b437e5a470d922b9d1fe9efaf4f3ba8","head":{"label":"LilianeBifano:cadastrar_familia","ref":"cadastrar_familia","sha":"cad9e4a34b437e5a470d922b9d1fe9efaf4f3ba8","user":{"login":"LilianeBifano","id":39811757,"node_id":"MDQ6VXNlcjM5ODExNzU3","avatar_url":"https://avatars1.githubusercontent.com/u/39811757?v=4","gravatar_id":"","url":"https://api.github.com/users/LilianeBifano","html_url":"https://github.com/LilianeBifano","followers_url":"https://api.github.com/users/LilianeBifano/followers","following_url":"https://api.github.com/users/LilianeBifano/following{/other_user}","gists_url":"https://api.github.com/users/LilianeBifano/gists{/gist_id}","starred_url":"https://api.github.com/users/LilianeBifano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LilianeBifano/subscriptions","organizations_url":"https://api.github.com/users/LilianeBifano/orgs","repos_url":"https://api.github.com/users/LilianeBifano/repos","events_url":"https://api.github.com/users/LilianeBifano/events{/privacy}","received_events_url":"https://api.github.com/users/LilianeBifano/received_events","type":"User","site_admin":false},"repo":{"id":141763452,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3NjM0NTI=","name":"financasemfamilia","full_name":"LilianeBifano/financasemfamilia","owner":{"login":"LilianeBifano","id":39811757,"node_id":"MDQ6VXNlcjM5ODExNzU3","avatar_url":"https://avatars1.githubusercontent.com/u/39811757?v=4","gravatar_id":"","url":"https://api.github.com/users/LilianeBifano","html_url":"https://github.com/LilianeBifano","followers_url":"https://api.github.com/users/LilianeBifano/followers","following_url":"https://api.github.com/users/LilianeBifano/following{/other_user}","gists_url":"https://api.github.com/users/LilianeBifano/gists{/gist_id}","starred_url":"https://api.github.com/users/LilianeBifano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LilianeBifano/subscriptions","organizations_url":"https://api.github.com/users/LilianeBifano/orgs","repos_url":"https://api.github.com/users/LilianeBifano/repos","events_url":"https://api.github.com/users/LilianeBifano/events{/privacy}","received_events_url":"https://api.github.com/users/LilianeBifano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LilianeBifano/financasemfamilia","description":null,"fork":false,"url":"https://api.github.com/repos/LilianeBifano/financasemfamilia","forks_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/forks","keys_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/teams","hooks_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/hooks","issue_events_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/events{/number}","events_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/events","assignees_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/assignees{/user}","branches_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/branches{/branch}","tags_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/tags","blobs_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/refs{/sha}","trees_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/statuses/{sha}","languages_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/languages","stargazers_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/stargazers","contributors_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/contributors","subscribers_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/subscribers","subscription_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/subscription","commits_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/commits{/sha}","git_commits_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/commits{/sha}","comments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/comments{/number}","issue_comment_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/comments{/number}","contents_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/contents/{+path}","compare_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/merges","archive_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/downloads","issues_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues{/number}","pulls_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls{/number}","milestones_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/milestones{/number}","notifications_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/labels{/name}","releases_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/releases{/id}","deployments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/deployments","created_at":"2018-07-20T22:32:13Z","updated_at":"2018-07-25T22:17:48Z","pushed_at":"2018-07-26T01:32:48Z","git_url":"git://github.com/LilianeBifano/financasemfamilia.git","ssh_url":"git@github.com:LilianeBifano/financasemfamilia.git","clone_url":"https://github.com/LilianeBifano/financasemfamilia.git","svn_url":"https://github.com/LilianeBifano/financasemfamilia","homepage":null,"size":314,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"LilianeBifano:master","ref":"master","sha":"54a2c0bd7c34f2a28200b1e83509b496f1ef169f","user":{"login":"LilianeBifano","id":39811757,"node_id":"MDQ6VXNlcjM5ODExNzU3","avatar_url":"https://avatars1.githubusercontent.com/u/39811757?v=4","gravatar_id":"","url":"https://api.github.com/users/LilianeBifano","html_url":"https://github.com/LilianeBifano","followers_url":"https://api.github.com/users/LilianeBifano/followers","following_url":"https://api.github.com/users/LilianeBifano/following{/other_user}","gists_url":"https://api.github.com/users/LilianeBifano/gists{/gist_id}","starred_url":"https://api.github.com/users/LilianeBifano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LilianeBifano/subscriptions","organizations_url":"https://api.github.com/users/LilianeBifano/orgs","repos_url":"https://api.github.com/users/LilianeBifano/repos","events_url":"https://api.github.com/users/LilianeBifano/events{/privacy}","received_events_url":"https://api.github.com/users/LilianeBifano/received_events","type":"User","site_admin":false},"repo":{"id":141763452,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE3NjM0NTI=","name":"financasemfamilia","full_name":"LilianeBifano/financasemfamilia","owner":{"login":"LilianeBifano","id":39811757,"node_id":"MDQ6VXNlcjM5ODExNzU3","avatar_url":"https://avatars1.githubusercontent.com/u/39811757?v=4","gravatar_id":"","url":"https://api.github.com/users/LilianeBifano","html_url":"https://github.com/LilianeBifano","followers_url":"https://api.github.com/users/LilianeBifano/followers","following_url":"https://api.github.com/users/LilianeBifano/following{/other_user}","gists_url":"https://api.github.com/users/LilianeBifano/gists{/gist_id}","starred_url":"https://api.github.com/users/LilianeBifano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LilianeBifano/subscriptions","organizations_url":"https://api.github.com/users/LilianeBifano/orgs","repos_url":"https://api.github.com/users/LilianeBifano/repos","events_url":"https://api.github.com/users/LilianeBifano/events{/privacy}","received_events_url":"https://api.github.com/users/LilianeBifano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LilianeBifano/financasemfamilia","description":null,"fork":false,"url":"https://api.github.com/repos/LilianeBifano/financasemfamilia","forks_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/forks","keys_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/teams","hooks_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/hooks","issue_events_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/events{/number}","events_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/events","assignees_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/assignees{/user}","branches_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/branches{/branch}","tags_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/tags","blobs_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/refs{/sha}","trees_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/statuses/{sha}","languages_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/languages","stargazers_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/stargazers","contributors_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/contributors","subscribers_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/subscribers","subscription_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/subscription","commits_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/commits{/sha}","git_commits_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/git/commits{/sha}","comments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/comments{/number}","issue_comment_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/comments{/number}","contents_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/contents/{+path}","compare_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/merges","archive_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/downloads","issues_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues{/number}","pulls_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls{/number}","milestones_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/milestones{/number}","notifications_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/labels{/name}","releases_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/releases{/id}","deployments_url":"https://api.github.com/repos/LilianeBifano/financasemfamilia/deployments","created_at":"2018-07-20T22:32:13Z","updated_at":"2018-07-25T22:17:48Z","pushed_at":"2018-07-26T01:32:48Z","git_url":"git://github.com/LilianeBifano/financasemfamilia.git","ssh_url":"git@github.com:LilianeBifano/financasemfamilia.git","clone_url":"https://github.com/LilianeBifano/financasemfamilia.git","svn_url":"https://github.com/LilianeBifano/financasemfamilia","homepage":null,"size":314,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6"},"html":{"href":"https://github.com/LilianeBifano/financasemfamilia/pull/6"},"issue":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/6"},"comments":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/LilianeBifano/financasemfamilia/statuses/cad9e4a34b437e5a470d922b9d1fe9efaf4f3ba8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"HenriqueMorato"}}