{"action":"created","comment":{"url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/comments/47627978","id":47627978,"diff_hunk":"@@ -149,35 +152,39 @@ def update\n       tramite.save\n     end\n \n-    if params[:estados_expedientes].present?\n-      new_states = JSON.parse(params[:estados_expedientes])\n-      new_states.each do |key, value|\n-        circuito.estado_expedientes.create do |ne|\n-          ne.tipo = value['tipo']\n-          ne.fecha = value['fecha']\n-          case value['tipo']\n-          when 2\n-            # orden del dia\n-            ne.nombre = \"Orden del Día\"\n-            ne.especificacion1 = value['especificacion1']\n-          when 3\n-            # a comision\n-            ne.nombre = \"A Comisión\"\n-            ne.especificacion1 = value['especificacion1']\n-          when 5\n-            # sancionado\n-            ne.nombre = \"Sancionado\"\n-            ne.especificacion1 = value['especificacion1']\n-            ne.especificacion2 = value['especificacion2']\n-          when 7\n-            # retirado\n-            ne.nombre = \"Retirado\"\n-          else\n-          end\n+    new_states = JSON.parse(params[:estados_expedientes])\n+    new_states.each do |key, value|\n+      circuito.estado_expedientes.create do |ne|\n+        ne.tipo = value['tipo']","path":"app/controllers/expedientes_controller.rb","position":42,"original_position":42,"commit_id":"a65ea9cfc060289e90fb5dd5207bd9d73628332e","original_commit_id":"a65ea9cfc060289e90fb5dd5207bd9d73628332e","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":"2015-12-15T12:06:58Z","updated_at":"2015-12-15T12:06:58Z","html_url":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159#discussion_r47627978","pull_request_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/comments/47627978"},"html":{"href":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159#discussion_r47627978"},"pull_request":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159","id":53694818,"html_url":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159","diff_url":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159.diff","patch_url":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159.patch","issue_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/159","number":159,"state":"closed","locked":false,"title":"Create expedientes","user":{"login":"jlgasparrini","id":4787484,"avatar_url":"https://avatars.githubusercontent.com/u/4787484?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgasparrini","html_url":"https://github.com/jlgasparrini","followers_url":"https://api.github.com/users/jlgasparrini/followers","following_url":"https://api.github.com/users/jlgasparrini/following{/other_user}","gists_url":"https://api.github.com/users/jlgasparrini/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgasparrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgasparrini/subscriptions","organizations_url":"https://api.github.com/users/jlgasparrini/orgs","repos_url":"https://api.github.com/users/jlgasparrini/repos","events_url":"https://api.github.com/users/jlgasparrini/events{/privacy}","received_events_url":"https://api.github.com/users/jlgasparrini/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-15T12:06:51Z","updated_at":"2015-12-15T12:06:58Z","closed_at":"2015-12-15T12:06:58Z","merged_at":"2015-12-15T12:06:58Z","merge_commit_sha":"408913c175cde30e8b6297877c2f3ec61379cf1d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159/commits","review_comments_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159/comments","review_comment_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/159/comments","statuses_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/statuses/a65ea9cfc060289e90fb5dd5207bd9d73628332e","head":{"label":"jlgasparrini:lg/create_expedientes","ref":"lg/create_expedientes","sha":"a65ea9cfc060289e90fb5dd5207bd9d73628332e","user":{"login":"jlgasparrini","id":4787484,"avatar_url":"https://avatars.githubusercontent.com/u/4787484?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgasparrini","html_url":"https://github.com/jlgasparrini","followers_url":"https://api.github.com/users/jlgasparrini/followers","following_url":"https://api.github.com/users/jlgasparrini/following{/other_user}","gists_url":"https://api.github.com/users/jlgasparrini/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgasparrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgasparrini/subscriptions","organizations_url":"https://api.github.com/users/jlgasparrini/orgs","repos_url":"https://api.github.com/users/jlgasparrini/repos","events_url":"https://api.github.com/users/jlgasparrini/events{/privacy}","received_events_url":"https://api.github.com/users/jlgasparrini/received_events","type":"User","site_admin":false},"repo":{"id":37981070,"name":"sistema-legislativo-digital","full_name":"jlgasparrini/sistema-legislativo-digital","owner":{"login":"jlgasparrini","id":4787484,"avatar_url":"https://avatars.githubusercontent.com/u/4787484?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgasparrini","html_url":"https://github.com/jlgasparrini","followers_url":"https://api.github.com/users/jlgasparrini/followers","following_url":"https://api.github.com/users/jlgasparrini/following{/other_user}","gists_url":"https://api.github.com/users/jlgasparrini/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgasparrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgasparrini/subscriptions","organizations_url":"https://api.github.com/users/jlgasparrini/orgs","repos_url":"https://api.github.com/users/jlgasparrini/repos","events_url":"https://api.github.com/users/jlgasparrini/events{/privacy}","received_events_url":"https://api.github.com/users/jlgasparrini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlgasparrini/sistema-legislativo-digital","description":"Sistema legislativo digital - Concejo Deliberante - Río Cuarto, Córdoba, Argentina","fork":false,"url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital","forks_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/forks","keys_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/teams","hooks_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/hooks","issue_events_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/events{/number}","events_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/events","assignees_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/assignees{/user}","branches_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/branches{/branch}","tags_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/tags","blobs_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/statuses/{sha}","languages_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/languages","stargazers_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/stargazers","contributors_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/contributors","subscribers_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/subscribers","subscription_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/subscription","commits_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/contents/{+path}","compare_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/merges","archive_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/downloads","issues_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues{/number}","pulls_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls{/number}","milestones_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/milestones{/number}","notifications_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/labels{/name}","releases_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/releases{/id}","created_at":"2015-06-24T11:42:28Z","updated_at":"2015-10-09T19:43:25Z","pushed_at":"2015-12-15T12:06:58Z","git_url":"git://github.com/jlgasparrini/sistema-legislativo-digital.git","ssh_url":"git@github.com:jlgasparrini/sistema-legislativo-digital.git","clone_url":"https://github.com/jlgasparrini/sistema-legislativo-digital.git","svn_url":"https://github.com/jlgasparrini/sistema-legislativo-digital","homepage":"http://www.concejoriocuarto.gov.ar/","size":695,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"jlgasparrini:develop","ref":"develop","sha":"979df5e5f6c9080572a43e2255b12753194b8883","user":{"login":"jlgasparrini","id":4787484,"avatar_url":"https://avatars.githubusercontent.com/u/4787484?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgasparrini","html_url":"https://github.com/jlgasparrini","followers_url":"https://api.github.com/users/jlgasparrini/followers","following_url":"https://api.github.com/users/jlgasparrini/following{/other_user}","gists_url":"https://api.github.com/users/jlgasparrini/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgasparrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgasparrini/subscriptions","organizations_url":"https://api.github.com/users/jlgasparrini/orgs","repos_url":"https://api.github.com/users/jlgasparrini/repos","events_url":"https://api.github.com/users/jlgasparrini/events{/privacy}","received_events_url":"https://api.github.com/users/jlgasparrini/received_events","type":"User","site_admin":false},"repo":{"id":37981070,"name":"sistema-legislativo-digital","full_name":"jlgasparrini/sistema-legislativo-digital","owner":{"login":"jlgasparrini","id":4787484,"avatar_url":"https://avatars.githubusercontent.com/u/4787484?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgasparrini","html_url":"https://github.com/jlgasparrini","followers_url":"https://api.github.com/users/jlgasparrini/followers","following_url":"https://api.github.com/users/jlgasparrini/following{/other_user}","gists_url":"https://api.github.com/users/jlgasparrini/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgasparrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgasparrini/subscriptions","organizations_url":"https://api.github.com/users/jlgasparrini/orgs","repos_url":"https://api.github.com/users/jlgasparrini/repos","events_url":"https://api.github.com/users/jlgasparrini/events{/privacy}","received_events_url":"https://api.github.com/users/jlgasparrini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlgasparrini/sistema-legislativo-digital","description":"Sistema legislativo digital - Concejo Deliberante - Río Cuarto, Córdoba, Argentina","fork":false,"url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital","forks_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/forks","keys_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/teams","hooks_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/hooks","issue_events_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/events{/number}","events_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/events","assignees_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/assignees{/user}","branches_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/branches{/branch}","tags_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/tags","blobs_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/statuses/{sha}","languages_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/languages","stargazers_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/stargazers","contributors_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/contributors","subscribers_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/subscribers","subscription_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/subscription","commits_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/contents/{+path}","compare_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/merges","archive_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/downloads","issues_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues{/number}","pulls_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls{/number}","milestones_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/milestones{/number}","notifications_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/labels{/name}","releases_url":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/releases{/id}","created_at":"2015-06-24T11:42:28Z","updated_at":"2015-10-09T19:43:25Z","pushed_at":"2015-12-15T12:06:58Z","git_url":"git://github.com/jlgasparrini/sistema-legislativo-digital.git","ssh_url":"git@github.com:jlgasparrini/sistema-legislativo-digital.git","clone_url":"https://github.com/jlgasparrini/sistema-legislativo-digital.git","svn_url":"https://github.com/jlgasparrini/sistema-legislativo-digital","homepage":"http://www.concejoriocuarto.gov.ar/","size":695,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159"},"html":{"href":"https://github.com/jlgasparrini/sistema-legislativo-digital/pull/159"},"issue":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/159"},"comments":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/jlgasparrini/sistema-legislativo-digital/statuses/a65ea9cfc060289e90fb5dd5207bd9d73628332e"}}}}