Juanjo Bazán
60089b8986
uses author info in comment/debate cache
...
author is already preloaded and we avoid expensive touching methods
2015-09-06 12:13:39 +02:00
Juanjo Bazán
e3449723b3
Merge pull request #370 from AyuntamientoMadrid/verified_users
...
Verified users
2015-09-06 11:35:56 +02:00
rgarcia
cbd4e30e80
fixes specs
2015-09-06 11:15:24 +02:00
Enrique García
c28c39e052
Merge pull request #371 from AyuntamientoMadrid/residence_verification_tries
...
increases residence verification tries only after a Census call
2015-09-06 00:03:36 +02:00
rgarcia
34218d112b
increases residence verification tries after a Census call
2015-09-05 23:57:47 +02:00
rgarcia
2260de9451
uppercases document number
2015-09-05 23:04:13 +02:00
rgarcia
17a1bedec0
removes document type from verified users query
2015-09-05 22:57:54 +02:00
rgarcia
0bca1c5b95
upgrades ruby hash syntax
2015-09-05 22:02:51 +02:00
rgarcia
cba83e6dd2
touches comments and debates after changes
2015-09-05 22:02:51 +02:00
rgarcia
7775da6f8d
fixes cache error when no user signed in
2015-09-05 22:02:51 +02:00
Juanjo Bazán
771f44c22b
adds self.search to Debate
2015-09-05 15:05:56 +02:00
Raimond Garcia
b55c08879d
Merge pull request #363 from AyuntamientoMadrid/god-kills-a-cat
...
validates uniqueness of username 😭
2015-09-05 00:52:06 +02:00
Juanjo Bazán
0a33a64c93
typo
2015-09-04 23:22:16 +02:00
Juanjo Bazán
3a7a8f13f5
validates uniqueness of username 😭
2015-09-04 23:15:41 +02:00
Juanjo Bazán
2a4c29c7ca
Merge branch 'master' into hot-score-347
2015-09-04 14:59:51 +02:00
kikito
08c31c5985
calls all the sorting scopes the same way
2015-09-04 14:17:59 +02:00
kikito
9bb63e9b32
Makes comments increase the hot_score
2015-09-04 14:04:45 +02:00
kikito
83ebbb14b1
Refactors hot_score calculations
2015-09-04 13:59:30 +02:00
kikito
fba4f1fade
Adds initial hot score implementation for debates
2015-09-04 12:34:17 +02:00
kikito
3012f2ffcd
Removes reorder in debate (no default order)
2015-09-04 11:54:19 +02:00
kikito
134f38a38f
Removes debates default order
2015-09-04 11:51:21 +02:00
kikito
7c3ca55de1
Adds the default score selector/controller. Refactors debates specs
2015-09-04 11:50:07 +02:00
rgarcia
71aaef3805
sends devise emails with delayed_jobs
2015-09-03 22:59:25 +02:00
Juanjo Bazán
559b60e63f
adds random order to debates' index
2015-09-03 18:50:19 +02:00
Juanjo Bazán
dbfa35c444
adds 'most commented' order to debates
2015-09-03 18:31:16 +02:00
Juanjo Bazán
cd3806476f
removes 'most voted' order from debates
2015-09-03 18:20:12 +02:00
Juanjo Bazán
bcb1f2ba72
adds order by score to debates
2015-09-03 18:13:48 +02:00
Juanjo Bazán
358028c3e6
Fixes conflicts. Merge branch 'master' into ancestry
2015-09-03 16:37:28 +02:00
Juanjo Bazán
136c1e73ed
uses ancestry to retrieve debate comments
2015-09-03 16:32:54 +02:00
Enrique García
aa22c82a5c
Merge pull request #331 from AyuntamientoMadrid/letter_verification
...
Letter verification
2015-09-03 12:38:08 +02:00
Juanjo Bazán
572432f2cf
Merge pull request #339 from AyuntamientoMadrid/remove-tag-filter-337
...
Remove tag filter
2015-09-03 11:50:53 +02:00
kikito
e0f8f8d8de
Removes Debate.search & uses Debate.tagged_by when appropriate
...
Using `params` was wrong here because if given an inexistent tag,
@tag_filter was nil but the debates were still filtered by it (so the
listing and what the page title said were different)
2015-09-03 11:17:21 +02:00
rgarcia
4897d5df4e
makes spaces consistent
2015-09-03 01:29:46 +02:00
rgarcia
29ae0c68f8
removes unnecessary comments
2015-09-03 01:29:13 +02:00
rgarcia
99d779bcec
adds letter code verification
2015-09-02 21:57:03 +02:00
Juanjo Bazán
dee2d0196b
ancestries
...
moves to ancestry from acts_as_commentable_with_threading
2015-09-02 19:23:09 +02:00
Juanjo Bazán
274ddb2589
changes rules for allowing debate votes
...
first 100 votes are allowed for unverified users
2015-09-02 13:40:38 +02:00
Raimond Garcia
3974ee1870
Merge pull request #315 from AyuntamientoMadrid/dev-seed
...
rake db:dev_seed
2015-09-01 21:12:19 +02:00
kikito
62415991c0
Fixes an issue found on comments using the dev_seed
2015-09-01 20:11:45 +02:00
Juanjo Bazán
872a23443b
updates anonymous counter in debate when voted
...
refactors to move all related code to Debate model
2015-09-01 17:49:02 +02:00
Juanjo Bazán
bbf96259fc
adds controller check for anonymous votes
2015-09-01 17:49:02 +02:00
Juanjo Bazán
0dca4c277b
adds Setting validation
2015-09-01 17:49:01 +02:00
Juanjo Bazán
2e5b5bccb5
adds methods to decide if a user can vote a debate
2015-09-01 17:49:01 +02:00
kikito
d0c7c7fe79
Adds User.comment_flags
2015-09-01 13:09:35 +02:00
kikito
c2faf0ef92
Merge Vote.in with Vote.for_debates
2015-09-01 13:08:32 +02:00
kikito
6902d2851b
Takes already-flagged-content out of Ability's concerns
2015-09-01 10:33:11 +02:00
kikito
27ece220f6
Transform Flag.flag! & unflag! into non-raising methods
...
They now return false and do nothing instead
2015-08-31 19:02:50 +02:00
rgarcia
9abd794133
validates acceptance of census terms of service
2015-08-30 12:50:17 +02:00
Juanjo Bazán
43b333b844
admins can search officials by name or email
2015-08-29 17:02:21 +02:00
Juanjo Bazán
59c2fdb596
adds search method to Organization
2015-08-29 16:29:55 +02:00