{"action":"created","comment":{"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments/40646646","id":40646646,"diff_hunk":"@@ -0,0 +1,20 @@\n+module FlagActions\n+  extend ActiveSupport::Concern\n+\n+  def flag\n+    Flag.flag(current_user, flagable)\n+    respond_with flagable, template: \"#{controller_name}/_refresh_flag_actions\"\n+  end\n+\n+  def unflag\n+    Flag.unflag(current_user, flagable)\n+    respond_with flagable, template: \"#{controller_name}/_refresh_flag_actions\"\n+  end\n+\n+  private\n+\n+    def flagable","path":"app/controllers/concerns/flag_actions.rb","position":16,"original_position":16,"commit_id":"22222bcf4c6e7f94130482d3cd69546f2869cb45","original_commit_id":"22222bcf4c6e7f94130482d3cd69546f2869cb45","user":{"login":"kikito","id":63131,"avatar_url":"https://avatars.githubusercontent.com/u/63131?v=3","gravatar_id":"","url":"https://api.github.com/users/kikito","html_url":"https://github.com/kikito","followers_url":"https://api.github.com/users/kikito/followers","following_url":"https://api.github.com/users/kikito/following{/other_user}","gists_url":"https://api.github.com/users/kikito/gists{/gist_id}","starred_url":"https://api.github.com/users/kikito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikito/subscriptions","organizations_url":"https://api.github.com/users/kikito/orgs","repos_url":"https://api.github.com/users/kikito/repos","events_url":"https://api.github.com/users/kikito/events{/privacy}","received_events_url":"https://api.github.com/users/kikito/received_events","type":"User","site_admin":false},"body":"Propongo usar resource aquí también. O al menos escribir `flaggable` en lugar de `flagable` (dos gs)","created_at":"2015-09-29T08:37:18Z","updated_at":"2015-09-29T08:37:18Z","html_url":"https://github.com/AyuntamientoMadrid/participacion/pull/570#discussion_r40646646","pull_request_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570","_links":{"self":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments/40646646"},"html":{"href":"https://github.com/AyuntamientoMadrid/participacion/pull/570#discussion_r40646646"},"pull_request":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570"}}},"pull_request":{"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570","id":46184255,"html_url":"https://github.com/AyuntamientoMadrid/participacion/pull/570","diff_url":"https://github.com/AyuntamientoMadrid/participacion/pull/570.diff","patch_url":"https://github.com/AyuntamientoMadrid/participacion/pull/570.patch","issue_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/570","number":570,"state":"open","locked":false,"title":"Refactoring controllers","user":{"login":"voodoorai2000","id":4169,"avatar_url":"https://avatars.githubusercontent.com/u/4169?v=3","gravatar_id":"","url":"https://api.github.com/users/voodoorai2000","html_url":"https://github.com/voodoorai2000","followers_url":"https://api.github.com/users/voodoorai2000/followers","following_url":"https://api.github.com/users/voodoorai2000/following{/other_user}","gists_url":"https://api.github.com/users/voodoorai2000/gists{/gist_id}","starred_url":"https://api.github.com/users/voodoorai2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voodoorai2000/subscriptions","organizations_url":"https://api.github.com/users/voodoorai2000/orgs","repos_url":"https://api.github.com/users/voodoorai2000/repos","events_url":"https://api.github.com/users/voodoorai2000/events{/privacy}","received_events_url":"https://api.github.com/users/voodoorai2000/received_events","type":"User","site_admin":false},"body":"Removes duplication from debate and proposal controllers","created_at":"2015-09-28T17:27:00Z","updated_at":"2015-09-29T08:37:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ff213652619c303578387fbe150e4030727bf49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570/commits","review_comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570/comments","review_comment_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/570/comments","statuses_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/22222bcf4c6e7f94130482d3cd69546f2869cb45","head":{"label":"AyuntamientoMadrid:refactoring_controllers","ref":"refactoring_controllers","sha":"22222bcf4c6e7f94130482d3cd69546f2869cb45","user":{"login":"AyuntamientoMadrid","id":13286342,"avatar_url":"https://avatars.githubusercontent.com/u/13286342?v=3","gravatar_id":"","url":"https://api.github.com/users/AyuntamientoMadrid","html_url":"https://github.com/AyuntamientoMadrid","followers_url":"https://api.github.com/users/AyuntamientoMadrid/followers","following_url":"https://api.github.com/users/AyuntamientoMadrid/following{/other_user}","gists_url":"https://api.github.com/users/AyuntamientoMadrid/gists{/gist_id}","starred_url":"https://api.github.com/users/AyuntamientoMadrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AyuntamientoMadrid/subscriptions","organizations_url":"https://api.github.com/users/AyuntamientoMadrid/orgs","repos_url":"https://api.github.com/users/AyuntamientoMadrid/repos","events_url":"https://api.github.com/users/AyuntamientoMadrid/events{/privacy}","received_events_url":"https://api.github.com/users/AyuntamientoMadrid/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"name":"participacion","full_name":"AyuntamientoMadrid/participacion","owner":{"login":"AyuntamientoMadrid","id":13286342,"avatar_url":"https://avatars.githubusercontent.com/u/13286342?v=3","gravatar_id":"","url":"https://api.github.com/users/AyuntamientoMadrid","html_url":"https://github.com/AyuntamientoMadrid","followers_url":"https://api.github.com/users/AyuntamientoMadrid/followers","following_url":"https://api.github.com/users/AyuntamientoMadrid/following{/other_user}","gists_url":"https://api.github.com/users/AyuntamientoMadrid/gists{/gist_id}","starred_url":"https://api.github.com/users/AyuntamientoMadrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AyuntamientoMadrid/subscriptions","organizations_url":"https://api.github.com/users/AyuntamientoMadrid/orgs","repos_url":"https://api.github.com/users/AyuntamientoMadrid/repos","events_url":"https://api.github.com/users/AyuntamientoMadrid/events{/privacy}","received_events_url":"https://api.github.com/users/AyuntamientoMadrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AyuntamientoMadrid/participacion","description":"Consul - Gobierno abierto del Ayuntamiento de Madrid","fork":false,"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion","forks_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/forks","keys_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/teams","hooks_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/hooks","issue_events_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/events{/number}","events_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/events","assignees_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/assignees{/user}","branches_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/branches{/branch}","tags_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/tags","blobs_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/refs{/sha}","trees_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/{sha}","languages_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/languages","stargazers_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/stargazers","contributors_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/contributors","subscribers_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/subscribers","subscription_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/subscription","commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/commits{/sha}","git_commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/commits{/sha}","comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/comments{/number}","issue_comment_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/comments{/number}","contents_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/contents/{+path}","compare_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/merges","archive_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/downloads","issues_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues{/number}","pulls_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls{/number}","milestones_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/milestones{/number}","notifications_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/labels{/name}","releases_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/releases{/id}","created_at":"2015-07-15T18:04:16Z","updated_at":"2015-09-28T15:58:12Z","pushed_at":"2015-09-29T08:27:06Z","git_url":"git://github.com/AyuntamientoMadrid/participacion.git","ssh_url":"git@github.com:AyuntamientoMadrid/participacion.git","clone_url":"https://github.com/AyuntamientoMadrid/participacion.git","svn_url":"https://github.com/AyuntamientoMadrid/participacion","homepage":"https://decide.madrid.es/","size":11139,"stargazers_count":227,"watchers_count":227,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":37,"forks":59,"open_issues":37,"watchers":227,"default_branch":"master"}},"base":{"label":"AyuntamientoMadrid:master","ref":"master","sha":"d541db8acf15b707c8e1ea100d28985374269e15","user":{"login":"AyuntamientoMadrid","id":13286342,"avatar_url":"https://avatars.githubusercontent.com/u/13286342?v=3","gravatar_id":"","url":"https://api.github.com/users/AyuntamientoMadrid","html_url":"https://github.com/AyuntamientoMadrid","followers_url":"https://api.github.com/users/AyuntamientoMadrid/followers","following_url":"https://api.github.com/users/AyuntamientoMadrid/following{/other_user}","gists_url":"https://api.github.com/users/AyuntamientoMadrid/gists{/gist_id}","starred_url":"https://api.github.com/users/AyuntamientoMadrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AyuntamientoMadrid/subscriptions","organizations_url":"https://api.github.com/users/AyuntamientoMadrid/orgs","repos_url":"https://api.github.com/users/AyuntamientoMadrid/repos","events_url":"https://api.github.com/users/AyuntamientoMadrid/events{/privacy}","received_events_url":"https://api.github.com/users/AyuntamientoMadrid/received_events","type":"Organization","site_admin":false},"repo":{"id":39152554,"name":"participacion","full_name":"AyuntamientoMadrid/participacion","owner":{"login":"AyuntamientoMadrid","id":13286342,"avatar_url":"https://avatars.githubusercontent.com/u/13286342?v=3","gravatar_id":"","url":"https://api.github.com/users/AyuntamientoMadrid","html_url":"https://github.com/AyuntamientoMadrid","followers_url":"https://api.github.com/users/AyuntamientoMadrid/followers","following_url":"https://api.github.com/users/AyuntamientoMadrid/following{/other_user}","gists_url":"https://api.github.com/users/AyuntamientoMadrid/gists{/gist_id}","starred_url":"https://api.github.com/users/AyuntamientoMadrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AyuntamientoMadrid/subscriptions","organizations_url":"https://api.github.com/users/AyuntamientoMadrid/orgs","repos_url":"https://api.github.com/users/AyuntamientoMadrid/repos","events_url":"https://api.github.com/users/AyuntamientoMadrid/events{/privacy}","received_events_url":"https://api.github.com/users/AyuntamientoMadrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AyuntamientoMadrid/participacion","description":"Consul - Gobierno abierto del Ayuntamiento de Madrid","fork":false,"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion","forks_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/forks","keys_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/teams","hooks_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/hooks","issue_events_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/events{/number}","events_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/events","assignees_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/assignees{/user}","branches_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/branches{/branch}","tags_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/tags","blobs_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/refs{/sha}","trees_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/{sha}","languages_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/languages","stargazers_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/stargazers","contributors_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/contributors","subscribers_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/subscribers","subscription_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/subscription","commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/commits{/sha}","git_commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/git/commits{/sha}","comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/comments{/number}","issue_comment_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/comments{/number}","contents_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/contents/{+path}","compare_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/merges","archive_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/downloads","issues_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues{/number}","pulls_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls{/number}","milestones_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/milestones{/number}","notifications_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/labels{/name}","releases_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/releases{/id}","created_at":"2015-07-15T18:04:16Z","updated_at":"2015-09-28T15:58:12Z","pushed_at":"2015-09-29T08:27:06Z","git_url":"git://github.com/AyuntamientoMadrid/participacion.git","ssh_url":"git@github.com:AyuntamientoMadrid/participacion.git","clone_url":"https://github.com/AyuntamientoMadrid/participacion.git","svn_url":"https://github.com/AyuntamientoMadrid/participacion","homepage":"https://decide.madrid.es/","size":11139,"stargazers_count":227,"watchers_count":227,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":37,"forks":59,"open_issues":37,"watchers":227,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570"},"html":{"href":"https://github.com/AyuntamientoMadrid/participacion/pull/570"},"issue":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/570"},"comments":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/570/comments"},"review_comments":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570/comments"},"review_comment":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/570/commits"},"statuses":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/22222bcf4c6e7f94130482d3cd69546f2869cb45"}}}}