{"action":"created","comment":{"url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/comments/32725714","id":32725714,"diff_hunk":"@@ -20,43 +16,55 @@ def html_con_contadores\n \n     # Los titulares se apoyan en la sección de titulares, si hay, o si no en la etiqueta correspondiente\n     def titulares\n-      if source.tematica.try(:seccion_titulares).present?\n-        q = contenido_class.where(\"#{ source.tematica.seccion_titulares } = true\").where(created_at: source.fecha_desde..source.fecha_hasta).where(fecha_titulares: source.fecha_desde..source.fecha_hasta)\n-      elsif source.tematica.try(:tag_id)\n-        taggings = tagging_class.where(tag_id: source.tematica.tag_id).where(created_at: source.fecha_desde..source.fecha_hasta).where(fecha_titulares: source.fecha_desde..source.fecha_hasta)\n+      if suscribible.try(:seccion_titulares).present?\n+        q = contenido_class\n+          .where(\"#{ suscribible.seccion_titulares } = true\")\n+          .where(created_at: fecha_desde..fecha_hasta)","path":"app/decorators/news_tematica/news_tematica_decorator.rb","position":22,"original_position":22,"commit_id":"fe57cea441f6e9cedd3b8120071a993e8f282dcd","original_commit_id":"fe57cea441f6e9cedd3b8120071a993e8f282dcd","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":"Align the operands of an expression in an assignment spanning multiple lines.","created_at":"2015-06-18T12:52:44Z","updated_at":"2015-06-18T12:52:44Z","html_url":"https://github.com/Soluciones/news_tematica/pull/56#discussion_r32725714","pull_request_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/comments/32725714"},"html":{"href":"https://github.com/Soluciones/news_tematica/pull/56#discussion_r32725714"},"pull_request":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56","id":37991784,"html_url":"https://github.com/Soluciones/news_tematica/pull/56","diff_url":"https://github.com/Soluciones/news_tematica/pull/56.diff","patch_url":"https://github.com/Soluciones/news_tematica/pull/56.patch","issue_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/56","number":56,"state":"open","locked":false,"title":"Pairing news general","user":{"login":"Fernan2","id":103583,"avatar_url":"https://avatars.githubusercontent.com/u/103583?v=3","gravatar_id":"","url":"https://api.github.com/users/Fernan2","html_url":"https://github.com/Fernan2","followers_url":"https://api.github.com/users/Fernan2/followers","following_url":"https://api.github.com/users/Fernan2/following{/other_user}","gists_url":"https://api.github.com/users/Fernan2/gists{/gist_id}","starred_url":"https://api.github.com/users/Fernan2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fernan2/subscriptions","organizations_url":"https://api.github.com/users/Fernan2/orgs","repos_url":"https://api.github.com/users/Fernan2/repos","events_url":"https://api.github.com/users/Fernan2/events{/privacy}","received_events_url":"https://api.github.com/users/Fernan2/received_events","type":"User","site_admin":false},"body":"NewsTematica should work with suscribible, not with tematica","created_at":"2015-06-18T10:25:24Z","updated_at":"2015-06-18T12:52:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7954de93ac990f5d62db0f97be5ffa4ae2f29c82","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56/commits","review_comments_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56/comments","review_comment_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/56/comments","statuses_url":"https://api.github.com/repos/Soluciones/news_tematica/statuses/fe57cea441f6e9cedd3b8120071a993e8f282dcd","head":{"label":"Soluciones:pairing-news-general","ref":"pairing-news-general","sha":"fe57cea441f6e9cedd3b8120071a993e8f282dcd","user":{"login":"Soluciones","id":568729,"avatar_url":"https://avatars.githubusercontent.com/u/568729?v=3","gravatar_id":"","url":"https://api.github.com/users/Soluciones","html_url":"https://github.com/Soluciones","followers_url":"https://api.github.com/users/Soluciones/followers","following_url":"https://api.github.com/users/Soluciones/following{/other_user}","gists_url":"https://api.github.com/users/Soluciones/gists{/gist_id}","starred_url":"https://api.github.com/users/Soluciones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soluciones/subscriptions","organizations_url":"https://api.github.com/users/Soluciones/orgs","repos_url":"https://api.github.com/users/Soluciones/repos","events_url":"https://api.github.com/users/Soluciones/events{/privacy}","received_events_url":"https://api.github.com/users/Soluciones/received_events","type":"Organization","site_admin":false},"repo":{"id":10075704,"name":"news_tematica","full_name":"Soluciones/news_tematica","owner":{"login":"Soluciones","id":568729,"avatar_url":"https://avatars.githubusercontent.com/u/568729?v=3","gravatar_id":"","url":"https://api.github.com/users/Soluciones","html_url":"https://github.com/Soluciones","followers_url":"https://api.github.com/users/Soluciones/followers","following_url":"https://api.github.com/users/Soluciones/following{/other_user}","gists_url":"https://api.github.com/users/Soluciones/gists{/gist_id}","starred_url":"https://api.github.com/users/Soluciones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soluciones/subscriptions","organizations_url":"https://api.github.com/users/Soluciones/orgs","repos_url":"https://api.github.com/users/Soluciones/repos","events_url":"https://api.github.com/users/Soluciones/events{/privacy}","received_events_url":"https://api.github.com/users/Soluciones/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Soluciones/news_tematica","description":"Nuestro primer engine","fork":false,"url":"https://api.github.com/repos/Soluciones/news_tematica","forks_url":"https://api.github.com/repos/Soluciones/news_tematica/forks","keys_url":"https://api.github.com/repos/Soluciones/news_tematica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Soluciones/news_tematica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Soluciones/news_tematica/teams","hooks_url":"https://api.github.com/repos/Soluciones/news_tematica/hooks","issue_events_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/events{/number}","events_url":"https://api.github.com/repos/Soluciones/news_tematica/events","assignees_url":"https://api.github.com/repos/Soluciones/news_tematica/assignees{/user}","branches_url":"https://api.github.com/repos/Soluciones/news_tematica/branches{/branch}","tags_url":"https://api.github.com/repos/Soluciones/news_tematica/tags","blobs_url":"https://api.github.com/repos/Soluciones/news_tematica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Soluciones/news_tematica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Soluciones/news_tematica/git/refs{/sha}","trees_url":"https://api.github.com/repos/Soluciones/news_tematica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Soluciones/news_tematica/statuses/{sha}","languages_url":"https://api.github.com/repos/Soluciones/news_tematica/languages","stargazers_url":"https://api.github.com/repos/Soluciones/news_tematica/stargazers","contributors_url":"https://api.github.com/repos/Soluciones/news_tematica/contributors","subscribers_url":"https://api.github.com/repos/Soluciones/news_tematica/subscribers","subscription_url":"https://api.github.com/repos/Soluciones/news_tematica/subscription","commits_url":"https://api.github.com/repos/Soluciones/news_tematica/commits{/sha}","git_commits_url":"https://api.github.com/repos/Soluciones/news_tematica/git/commits{/sha}","comments_url":"https://api.github.com/repos/Soluciones/news_tematica/comments{/number}","issue_comment_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/comments{/number}","contents_url":"https://api.github.com/repos/Soluciones/news_tematica/contents/{+path}","compare_url":"https://api.github.com/repos/Soluciones/news_tematica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Soluciones/news_tematica/merges","archive_url":"https://api.github.com/repos/Soluciones/news_tematica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Soluciones/news_tematica/downloads","issues_url":"https://api.github.com/repos/Soluciones/news_tematica/issues{/number}","pulls_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls{/number}","milestones_url":"https://api.github.com/repos/Soluciones/news_tematica/milestones{/number}","notifications_url":"https://api.github.com/repos/Soluciones/news_tematica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Soluciones/news_tematica/labels{/name}","releases_url":"https://api.github.com/repos/Soluciones/news_tematica/releases{/id}","created_at":"2013-05-15T09:54:31Z","updated_at":"2015-03-24T11:19:26Z","pushed_at":"2015-06-18T12:52:40Z","git_url":"git://github.com/Soluciones/news_tematica.git","ssh_url":"git@github.com:Soluciones/news_tematica.git","clone_url":"https://github.com/Soluciones/news_tematica.git","svn_url":"https://github.com/Soluciones/news_tematica","homepage":null,"size":1521,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Soluciones:master","ref":"master","sha":"10d31bb310cc855bce60c509b9b3c361f95c97c3","user":{"login":"Soluciones","id":568729,"avatar_url":"https://avatars.githubusercontent.com/u/568729?v=3","gravatar_id":"","url":"https://api.github.com/users/Soluciones","html_url":"https://github.com/Soluciones","followers_url":"https://api.github.com/users/Soluciones/followers","following_url":"https://api.github.com/users/Soluciones/following{/other_user}","gists_url":"https://api.github.com/users/Soluciones/gists{/gist_id}","starred_url":"https://api.github.com/users/Soluciones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soluciones/subscriptions","organizations_url":"https://api.github.com/users/Soluciones/orgs","repos_url":"https://api.github.com/users/Soluciones/repos","events_url":"https://api.github.com/users/Soluciones/events{/privacy}","received_events_url":"https://api.github.com/users/Soluciones/received_events","type":"Organization","site_admin":false},"repo":{"id":10075704,"name":"news_tematica","full_name":"Soluciones/news_tematica","owner":{"login":"Soluciones","id":568729,"avatar_url":"https://avatars.githubusercontent.com/u/568729?v=3","gravatar_id":"","url":"https://api.github.com/users/Soluciones","html_url":"https://github.com/Soluciones","followers_url":"https://api.github.com/users/Soluciones/followers","following_url":"https://api.github.com/users/Soluciones/following{/other_user}","gists_url":"https://api.github.com/users/Soluciones/gists{/gist_id}","starred_url":"https://api.github.com/users/Soluciones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soluciones/subscriptions","organizations_url":"https://api.github.com/users/Soluciones/orgs","repos_url":"https://api.github.com/users/Soluciones/repos","events_url":"https://api.github.com/users/Soluciones/events{/privacy}","received_events_url":"https://api.github.com/users/Soluciones/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Soluciones/news_tematica","description":"Nuestro primer engine","fork":false,"url":"https://api.github.com/repos/Soluciones/news_tematica","forks_url":"https://api.github.com/repos/Soluciones/news_tematica/forks","keys_url":"https://api.github.com/repos/Soluciones/news_tematica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Soluciones/news_tematica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Soluciones/news_tematica/teams","hooks_url":"https://api.github.com/repos/Soluciones/news_tematica/hooks","issue_events_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/events{/number}","events_url":"https://api.github.com/repos/Soluciones/news_tematica/events","assignees_url":"https://api.github.com/repos/Soluciones/news_tematica/assignees{/user}","branches_url":"https://api.github.com/repos/Soluciones/news_tematica/branches{/branch}","tags_url":"https://api.github.com/repos/Soluciones/news_tematica/tags","blobs_url":"https://api.github.com/repos/Soluciones/news_tematica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Soluciones/news_tematica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Soluciones/news_tematica/git/refs{/sha}","trees_url":"https://api.github.com/repos/Soluciones/news_tematica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Soluciones/news_tematica/statuses/{sha}","languages_url":"https://api.github.com/repos/Soluciones/news_tematica/languages","stargazers_url":"https://api.github.com/repos/Soluciones/news_tematica/stargazers","contributors_url":"https://api.github.com/repos/Soluciones/news_tematica/contributors","subscribers_url":"https://api.github.com/repos/Soluciones/news_tematica/subscribers","subscription_url":"https://api.github.com/repos/Soluciones/news_tematica/subscription","commits_url":"https://api.github.com/repos/Soluciones/news_tematica/commits{/sha}","git_commits_url":"https://api.github.com/repos/Soluciones/news_tematica/git/commits{/sha}","comments_url":"https://api.github.com/repos/Soluciones/news_tematica/comments{/number}","issue_comment_url":"https://api.github.com/repos/Soluciones/news_tematica/issues/comments{/number}","contents_url":"https://api.github.com/repos/Soluciones/news_tematica/contents/{+path}","compare_url":"https://api.github.com/repos/Soluciones/news_tematica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Soluciones/news_tematica/merges","archive_url":"https://api.github.com/repos/Soluciones/news_tematica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Soluciones/news_tematica/downloads","issues_url":"https://api.github.com/repos/Soluciones/news_tematica/issues{/number}","pulls_url":"https://api.github.com/repos/Soluciones/news_tematica/pulls{/number}","milestones_url":"https://api.github.com/repos/Soluciones/news_tematica/milestones{/number}","notifications_url":"https://api.github.com/repos/Soluciones/news_tematica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Soluciones/news_tematica/labels{/name}","releases_url":"https://api.github.com/repos/Soluciones/news_tematica/releases{/id}","created_at":"2013-05-15T09:54:31Z","updated_at":"2015-03-24T11:19:26Z","pushed_at":"2015-06-18T12:52:40Z","git_url":"git://github.com/Soluciones/news_tematica.git","ssh_url":"git@github.com:Soluciones/news_tematica.git","clone_url":"https://github.com/Soluciones/news_tematica.git","svn_url":"https://github.com/Soluciones/news_tematica","homepage":null,"size":1521,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56"},"html":{"href":"https://github.com/Soluciones/news_tematica/pull/56"},"issue":{"href":"https://api.github.com/repos/Soluciones/news_tematica/issues/56"},"comments":{"href":"https://api.github.com/repos/Soluciones/news_tematica/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Soluciones/news_tematica/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/Soluciones/news_tematica/statuses/fe57cea441f6e9cedd3b8120071a993e8f282dcd"}}}}