{"action":"created","comment":{"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments/37110903","id":37110903,"diff_hunk":"@@ -16,17 +16,22 @@\n //= require turbolinks\n //= require ckeditor/init\n //= require social-share-button\n+//= require initial\n //= require app\n //= require_tree .\n \n var initialize_modules = function() {\n   App.Comments.initialize();\n+  App.Users.initialize();\n   App.Votes.initialize();\n };\n \n $(function(){\n   $(document).foundation();\n \n-  $(document).ready(initialize_modules)\n-  $(document).on('page:load', initialize_modules)\n+  $(document).ready(initialize_modules);\n+  $(document).on('page:load', initialize_modules);\n+  $(document).on('ajax:complete', function(){\n+    App.Users.initialize();","path":"app/assets/javascripts/application.js","position":null,"original_position":22,"commit_id":"994774ec65d08ecccb47edaedf7636a181ecf4d0","original_commit_id":"b5514268f593103724232aafc8e5a7b93b936dab","user":{"login":"dgilperez","id":264590,"avatar_url":"https://avatars.githubusercontent.com/u/264590?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilperez","html_url":"https://github.com/dgilperez","followers_url":"https://api.github.com/users/dgilperez/followers","following_url":"https://api.github.com/users/dgilperez/following{/other_user}","gists_url":"https://api.github.com/users/dgilperez/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilperez/subscriptions","organizations_url":"https://api.github.com/users/dgilperez/orgs","repos_url":"https://api.github.com/users/dgilperez/repos","events_url":"https://api.github.com/users/dgilperez/events{/privacy}","received_events_url":"https://api.github.com/users/dgilperez/received_events","type":"User","site_admin":false},"body":"Hecho! \r\n\r\nAl final he dejado en el último commit el tema de los comentarios arreglado para futuros intentos de doble inicialización. ","created_at":"2015-08-14T19:29:17Z","updated_at":"2015-08-14T19:29:17Z","html_url":"https://github.com/AyuntamientoMadrid/participacion/pull/158#discussion_r37110903","pull_request_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments/37110903"},"html":{"href":"https://github.com/AyuntamientoMadrid/participacion/pull/158#discussion_r37110903"},"pull_request":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158","id":42253161,"html_url":"https://github.com/AyuntamientoMadrid/participacion/pull/158","diff_url":"https://github.com/AyuntamientoMadrid/participacion/pull/158.diff","patch_url":"https://github.com/AyuntamientoMadrid/participacion/pull/158.patch","issue_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/158","number":158,"state":"open","locked":false,"title":"Añadir initial.js para mostrar Gmail-ish avatares - issue #156","user":{"login":"dgilperez","id":264590,"avatar_url":"https://avatars.githubusercontent.com/u/264590?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilperez","html_url":"https://github.com/dgilperez","followers_url":"https://api.github.com/users/dgilperez/followers","following_url":"https://api.github.com/users/dgilperez/following{/other_user}","gists_url":"https://api.github.com/users/dgilperez/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilperez/subscriptions","organizations_url":"https://api.github.com/users/dgilperez/orgs","repos_url":"https://api.github.com/users/dgilperez/repos","events_url":"https://api.github.com/users/dgilperez/events{/privacy}","received_events_url":"https://api.github.com/users/dgilperez/received_events","type":"User","site_admin":false},"body":"@decabeza he añadido un helper para facilitar su uso en las vistas, que puedes usar así: \r\n\r\n````\r\n    avatar_image(user) # => imagen pequeña, bordes redondeados\r\n    avatar_image(user, style: :profile) # => imagen grande como la de cuenta\r\n    avatar_image(user, class: 'una_clase otra_class') # => añadiendo clases CSS al <img/>\r\n    avatar_image(user, round_corners: false) # => bordes rectos\r\n````\r\n\r\nTambién he borrado la clase CSS `.user-photo`, que ya no se usa.\r\n\r\nCon esto creo que https://github.com/AyuntamientoMadrid/participacion/issues/156 está listo.","created_at":"2015-08-12T15:29:54Z","updated_at":"2015-08-14T19:29:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ebf54d416951316521b6d23d78f8ef7ae9e8808","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158/commits","review_comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158/comments","review_comment_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/158/comments","statuses_url":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/994774ec65d08ecccb47edaedf7636a181ecf4d0","head":{"label":"dgilperez:issue-156","ref":"issue-156","sha":"994774ec65d08ecccb47edaedf7636a181ecf4d0","user":{"login":"dgilperez","id":264590,"avatar_url":"https://avatars.githubusercontent.com/u/264590?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilperez","html_url":"https://github.com/dgilperez","followers_url":"https://api.github.com/users/dgilperez/followers","following_url":"https://api.github.com/users/dgilperez/following{/other_user}","gists_url":"https://api.github.com/users/dgilperez/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilperez/subscriptions","organizations_url":"https://api.github.com/users/dgilperez/orgs","repos_url":"https://api.github.com/users/dgilperez/repos","events_url":"https://api.github.com/users/dgilperez/events{/privacy}","received_events_url":"https://api.github.com/users/dgilperez/received_events","type":"User","site_admin":false},"repo":{"id":40549455,"name":"participacion","full_name":"dgilperez/participacion","owner":{"login":"dgilperez","id":264590,"avatar_url":"https://avatars.githubusercontent.com/u/264590?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilperez","html_url":"https://github.com/dgilperez","followers_url":"https://api.github.com/users/dgilperez/followers","following_url":"https://api.github.com/users/dgilperez/following{/other_user}","gists_url":"https://api.github.com/users/dgilperez/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilperez/subscriptions","organizations_url":"https://api.github.com/users/dgilperez/orgs","repos_url":"https://api.github.com/users/dgilperez/repos","events_url":"https://api.github.com/users/dgilperez/events{/privacy}","received_events_url":"https://api.github.com/users/dgilperez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgilperez/participacion","description":"","fork":true,"url":"https://api.github.com/repos/dgilperez/participacion","forks_url":"https://api.github.com/repos/dgilperez/participacion/forks","keys_url":"https://api.github.com/repos/dgilperez/participacion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgilperez/participacion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgilperez/participacion/teams","hooks_url":"https://api.github.com/repos/dgilperez/participacion/hooks","issue_events_url":"https://api.github.com/repos/dgilperez/participacion/issues/events{/number}","events_url":"https://api.github.com/repos/dgilperez/participacion/events","assignees_url":"https://api.github.com/repos/dgilperez/participacion/assignees{/user}","branches_url":"https://api.github.com/repos/dgilperez/participacion/branches{/branch}","tags_url":"https://api.github.com/repos/dgilperez/participacion/tags","blobs_url":"https://api.github.com/repos/dgilperez/participacion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgilperez/participacion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgilperez/participacion/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgilperez/participacion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgilperez/participacion/statuses/{sha}","languages_url":"https://api.github.com/repos/dgilperez/participacion/languages","stargazers_url":"https://api.github.com/repos/dgilperez/participacion/stargazers","contributors_url":"https://api.github.com/repos/dgilperez/participacion/contributors","subscribers_url":"https://api.github.com/repos/dgilperez/participacion/subscribers","subscription_url":"https://api.github.com/repos/dgilperez/participacion/subscription","commits_url":"https://api.github.com/repos/dgilperez/participacion/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgilperez/participacion/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgilperez/participacion/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgilperez/participacion/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgilperez/participacion/contents/{+path}","compare_url":"https://api.github.com/repos/dgilperez/participacion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgilperez/participacion/merges","archive_url":"https://api.github.com/repos/dgilperez/participacion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgilperez/participacion/downloads","issues_url":"https://api.github.com/repos/dgilperez/participacion/issues{/number}","pulls_url":"https://api.github.com/repos/dgilperez/participacion/pulls{/number}","milestones_url":"https://api.github.com/repos/dgilperez/participacion/milestones{/number}","notifications_url":"https://api.github.com/repos/dgilperez/participacion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgilperez/participacion/labels{/name}","releases_url":"https://api.github.com/repos/dgilperez/participacion/releases{/id}","created_at":"2015-08-11T15:23:02Z","updated_at":"2015-08-11T15:23:03Z","pushed_at":"2015-08-14T19:24:49Z","git_url":"git://github.com/dgilperez/participacion.git","ssh_url":"git@github.com:dgilperez/participacion.git","clone_url":"https://github.com/dgilperez/participacion.git","svn_url":"https://github.com/dgilperez/participacion","homepage":null,"size":3118,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AyuntamientoMadrid:master","ref":"master","sha":"23973445974eb2c2f81e6dd54c38104b8bd930dd","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":"","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-08-13T18:24:37Z","pushed_at":"2015-08-14T19:24:50Z","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":null,"size":4466,"stargazers_count":141,"watchers_count":141,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":29,"forks":31,"open_issues":29,"watchers":141,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158"},"html":{"href":"https://github.com/AyuntamientoMadrid/participacion/pull/158"},"issue":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/158"},"comments":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/AyuntamientoMadrid/participacion/statuses/994774ec65d08ecccb47edaedf7636a181ecf4d0"}}}}