Javi Martín
863b326142
Validate both the model and its translations
...
This way we guarantee there will be at least one translation for a model
and we keep compatibility with the rest of the application, which
ideally isn't aware of globalize.
2018-10-22 16:30:28 +02:00
Javi Martín
2ab49a1832
Refactor globalize models code using a concern
...
I've chosen the name "Globalizable" because "Translatable" already
existed.
2018-10-22 16:28:53 +02:00
Javi Martín
85701bd754
Update legislation questions translatable fields
2018-10-22 15:46:24 +02:00
Javi Martín
3fb98b1752
Fix typos
2018-09-19 14:54:52 +02:00
Marko Lovic
06347062dd
Make Legislation Questions translatable
2018-09-19 14:54:24 +02:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
Bertocq
69f4e1c683
Fix all rubocop Metrics/LineLength issues (140+)
2017-07-10 13:22:49 +02:00
Bertocq
904e3fdcfa
Fix all Style/HashSyntax rubocop issues and remove from rubocop_todo list
2017-06-28 14:12:51 +02:00
Bertocq
523988a291
Replace old open_phase? method for new phase/publication open? on Legislative Process
2017-06-13 22:04:36 +02:00
Amaia Castro
3009706b0d
Don’t allow comments on questions for unverified users and when the phase is closed
2017-02-08 18:19:10 +01:00
Amaia Castro
49f4bf5bc5
Destroy object when their parent object is destroyed
2017-01-13 19:34:17 +01:00
Fernando Blat
de13574617
Show link to the first question
2017-01-05 12:31:20 +01:00
Amaia Castro
a6ceab6d73
Answer legislation questions
2016-12-27 19:49:03 +01:00
Amaia Castro
5e01b380cd
Legislation Answer model
2016-12-27 18:21:50 +01:00
Amaia Castro
55eb03531c
Comments in legislation question page
2016-12-23 09:35:02 +01:00
Amaia Castro
59d68264cf
Force order in query
2016-12-22 16:22:43 +01:00
Amaia Castro
368430d914
Legislation Question page
2016-12-22 16:00:28 +01:00
Amaia Castro
d25d6c178c
Legislation Questions model and basic admin
2016-12-20 18:52:43 +01:00