Juanjo Bazán
e706aaff2c
adds extra specs for debate's cache
2015-09-06 12:40:13 +02:00
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
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
9515ccc3a8
adds specs
2015-09-05 22:03:33 +02:00
Juanjo Bazán
771f44c22b
adds self.search to Debate
2015-09-05 15:05:56 +02:00
kikito
9bb63e9b32
Makes comments increase the hot_score
2015-09-04 14:04:45 +02:00
kikito
2975c6a38d
Makes votes increase/decrease hot score
...
Debates already call update_attibutes in debates (to update cached
counters), so there is no need to do an “after_voted”: the comment’s
before_save call takes care of it.
2015-09-04 14:04:18 +02:00
kikito
fba4f1fade
Adds initial hot score implementation for debates
2015-09-04 12:34:17 +02:00
kikito
134f38a38f
Removes debates default order
2015-09-04 11:51:21 +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
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
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
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
9e7722e7ef
adds verification specs for user
...
includes #unverified? method
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
3a15895617
loads seeds for testing
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
Juanjo Bazán
916f0bf901
adds spec for Setting
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
0f145da18b
adds specs
2015-08-30 12:51:26 +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
Juanjo Bazán
e8463d1372
moves Residence model to Verification namespace
2015-08-29 12:38:07 +02:00
Juanjo Bazán
e6fd62189b
moves Sms model to Verification namespace
2015-08-29 12:17:27 +02:00
Juanjo Bazán
50dcbcdf9b
moves Letter to Verification namespace
2015-08-29 12:07:43 +02:00
kikito
cb99996317
merges master and fix conflicts
2015-08-28 13:23:30 +02:00
rgarcia
9cce254c8d
adds specs
2015-08-28 00:03:16 +02:00
kikito
1770dfd3f6
adds ability to confirm the hiding of comments, debates or users
2015-08-27 13:20:12 +02:00
kikito
cd982768f2
Renames the "archive" action to "ignore_flag" (+)
...
* archived_at -> ignored_flag_at
* archived? -> ignored_flag?
* archive -> ignore_flag
* pending -> pending_flag_review
* archived (scope) -> with_ignored_flag
* I18n changes
2015-08-27 11:43:58 +02:00
kikito
909dfb4ce3
Several renamings
...
InappropiateFlag -> Flag
x.flag_as_inappropiate -> x.flag
x.undo_flag_as_inappropiate -> x.unflag
X.flagged_as_inappropiate -> x.flagged
flag-as-inappropiate-actions views & css -> flag-actions views & css
2015-08-27 10:48:49 +02:00
Juanjo Bazán
dacbe27fda
uses cache counter for debate's comments
2015-08-26 17:26:17 +02:00
kikito
6110284356
removes all references to "review" (replaced by "archive")
2015-08-26 13:48:57 +02:00
David Gil
f0e47ee787
adds Identity model and migration
2015-08-24 20:24:10 +02:00
Juanjo Bazán
57228636c4
adds as_moderator/administrator methods to comment
2015-08-24 17:47:09 +02:00
Juanjo Bazán
3085f265d8
adds abilities for commenting as moderator/admin
2015-08-24 13:17:58 +02:00
kikito
c88f7c1f30
merges master and fixes conflicts
2015-08-23 20:27:11 +02:00
kikito
8bc92811b6
Adds traits to debate & comment factories
2015-08-22 20:20:47 +02:00
kikito
5e32fd2fa4
Adds new abilities for moderators
...
extends hiding (i.e. you can not hide your own content or yourself) and
adds marking as reviewed
2015-08-21 20:39:40 +02:00
Juanjo Bazán
b396a3b415
refactors user's registration
...
Simplifies process and fields:
* In: username
* Out: first_name, last_name, phone, nickname, use_nickname?
Closes #213
2015-08-21 16:41:08 +02:00
kikito
ee881230ba
merges master and fixes conflicts
2015-08-20 18:50:10 +02:00
kikito
246145e4cb
adds abilities for regular users
2015-08-20 18:45:32 +02:00
kikito
8944327405
adds InappropiateFlag model with relations and specs
2015-08-20 16:03:00 +02:00