Commit Graph

366 Commits

Author SHA1 Message Date
Juanjo Bazán
2eefdb2499 adds magic number 2015-09-13 18:59:46 +02:00
juandefelix
e2fc128c16 passing validations by adding terms_of_service to attributes hash 2015-09-13 11:11:11 -05:00
kikito
2466b2b830 adds the same routes as debates have to proposals 2015-09-13 12:26:23 +02:00
rgarcia
f1dd550cd9 fixes js injection for proposal description 2015-09-13 12:11:39 +02:00
kikito
5903ebe857 merges master and fix conflicts 2015-09-12 19:54:15 +02:00
kikito
08cf75fb95 Fixes bug: users were creating new organisations instead of updating existing ones 2015-09-12 19:30:26 +02:00
kikito
849a2c83a8 Implements searching in proposals 2015-09-12 18:35:45 +02:00
Juanjo Bazán
6b0edac6fc adds responsible_name to organizations 2015-09-12 18:16:14 +02:00
kikito
3bcea097c6 Moves model concerns from lib to app/models/concerns 2015-09-12 16:53:35 +02:00
Juanjo Bazán
815ee0ad62 saves a query 2015-09-12 16:19:17 +02:00
kikito
22e8d615aa fixes abilities: level 3 users can vote proposals, not just level 2 2015-09-12 14:13:40 +02:00
kikito
231665020e Allows commenting Proposals in Comment validation 2015-09-12 14:05:24 +02:00
kikito
f80d7771a1 Adds paranoia & Flammable to proposal 2015-09-12 14:05:24 +02:00
kikito
d57d538f3b Extracts Flammable module from comment & debate 2015-09-12 14:05:24 +02:00
Juanjo Bazán
e407173e4b adds code to proposals 2015-09-12 13:14:59 +02:00
Juanjo Bazán
26113cac96 adds setting value check in Proposal#editable? 2015-09-12 12:53:22 +02:00
kikito
68790ac8e5 adds abilities for proposals 2015-09-12 12:48:47 +02:00
rgarcia
3fc4cf0c1b adds proposal's index 2015-09-12 12:47:28 +02:00
rgarcia
f2b917d486 adds proposal show 2015-09-12 12:30:20 +02:00
rgarcia
3f7338a6ae adds proposal new and create 2015-09-12 11:38:22 +02:00
Juanjo Bazán
104900d343 adds proposal model 2015-09-11 19:25:26 +02:00
rgarcia
58a780bac5 reverts postgres extension until permissions enabled at server level 2015-09-11 16:31:24 +02:00
kikito
c399ddf18d Adds default values to limits when the db does not have them
This prevents errors when doing rake db:setup (the db has still not
been created but the rails models are loaded)
2015-09-11 11:32:29 +02:00
David Gil
1833c83351 unaccents Debate.search terms and tests that 2015-09-10 21:03:55 +02:00
Juanjo Bazán
728dd28acf Merge pull request #460 from dgilperez/improve_comment_email_delivery_logic
Prevents users to receive email notifications about own comments and replies
2015-09-10 20:45:17 +02:00
rgarcia
abc68dc868 refactors lock tries [#279] 2015-09-10 20:26:49 +02:00
Enrique García
c1c213f773 Merge pull request #461 from AyuntamientoMadrid/final_verification-395
Final letter verification
2015-09-10 20:22:42 +02:00
Enrique García
1a804fc73d Merge pull request #454 from AyuntamientoMadrid/failed_census_call-277
Stores failed Census API calls
2015-09-10 20:21:15 +02:00
rgarcia
664852ce4e refactors storing of failed attempt [#277] 2015-09-10 20:16:49 +02:00
rgarcia
b7c1b4acee renames verify? methods [#395] 2015-09-10 20:08:11 +02:00
rgarcia
8186f5a240 refactors method names for validations [#395] 2015-09-10 20:06:45 +02:00
David Gil
d9300f1c10 prevents users to receive email notifications about own comments and replies 2015-09-10 18:46:00 +02:00
David Gil
8ed434cc8b uses more rails-like syntax in scopes 2015-09-10 18:44:33 +02:00
kikito
8596df1ea8 merges master and fix conflicts 2015-09-10 18:09:19 +02:00
kikito
95fc7ea949 remove constants / replace by class methods 2015-09-10 18:07:30 +02:00
rgarcia
547b7afc6b stores failed Census API calls [#277] 2015-09-10 18:00:23 +02:00
kikito
43bdfb940e merges master and fixes conflicts 2015-09-10 17:47:40 +02:00
kikito
249aed42c4 Makes welcome screen work using a sessions controller 2015-09-10 17:41:37 +02:00
rgarcia
fa2b6e78ef refactors address validation [#395] 2015-09-10 14:28:16 +02:00
rgarcia
cd74744e06 adds validation error for letter verification code [#395] 2015-09-10 14:27:02 +02:00
kikito
2d3015703d replaces constants by class methods + private functions. Fixes broken tests 2015-09-10 13:02:21 +02:00
rgarcia
b779e7903c refactors letter and sms generation codes [#332] 2015-09-10 11:45:19 +02:00
rgarcia
745dbc3f51 makes the letter code 6 digits [#332] 2015-09-10 11:44:09 +02:00
rgarcia
16dd609ad0 adds verification tries to letter code [#332] 2015-09-10 11:43:25 +02:00
kikito
f93173ef4a fixes typo 2015-09-09 19:37:52 +02:00
kikito
8c9f189d75 merges master and fixes conflicts 2015-09-09 19:36:23 +02:00
rgarcia
6a09e6548d reverts - stats with delayed jobs 2015-09-09 19:17:13 +02:00
kikito
5e7a5b57de Adds max lengths and validations in models 2015-09-09 18:32:36 +02:00
Raimond Garcia
bab31b0559 Merge pull request #448 from AyuntamientoMadrid/caches
Cache for comments
2015-09-09 17:01:11 +02:00
Juanjo Bazán
92bff4b4c3 adds :touch to ancestry
now nested comments caches invalidates automagically
2015-09-09 14:46:09 +02:00