Javi Martín
db97f9d08c
Add and apply rubocop rules for empty lines
...
We were very inconsistent regarding these rules.
Personally I prefer no empty lines around blocks, clases, etc... as
recommended by the Ruby style guide [1], and they're the default values
in rubocop, so those are the settings I'm applying.
The exception is the `private` access modifier, since we were leaving
empty lines around it most of the time. That's the default rubocop rule
as well. Personally I don't have a strong preference about this one.
[1] https://rubystyle.guide/#empty-lines-around-bodies
2019-10-24 17:11:47 +02:00
Javi Martín
6ffe563264
Add an apply StringConversionInInterpolation rule
2019-10-05 15:03:26 +02:00
Javi Martín
d42b9ff4a5
Extract method to get valid answers to a question
...
This way we remove duplication and we avoid a multi-line block in a
validation rule, which made the code hard to read.
2019-10-05 14:34:52 +02:00
Javi Martín
b5b07bccd3
Apply PercentLiteralDelimiters rubocop rule
2019-09-10 20:02:15 +02:00
lalo
7c9c50f4c6
Add Model changes to work with votation_types
2019-06-12 19:32:41 +02:00
Juanjo Bazán
7ab602175a
makes models inherit from ApplicationRecord
2019-04-17 17:40:56 +02:00
Julian Herrero
3ba961a2d7
Use double quotes in models
2019-03-14 17:25:43 +01:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +02:00
Bertocq
08823153a9
Correct answer inclusion validation for no question scenario
2017-10-18 02:03:58 +02:00
Bertocq
8d2945e8a2
Fix answer attribute validation to check question's question_answers inclusion
2017-10-18 01:31:34 +02:00
Bertocq
2888c20489
Fix all Style/RedundantSelf rubocop issues
2017-07-05 11:55:52 +02:00
Bertocq
02524b164a
Rubocop autocorrections (indentations, revers unless to if, extra spaces)
2017-06-08 12:14:35 +02:00
Juanjo Bazán
f060969422
adds changes logging to poll partial results
2017-02-02 16:26:21 +01:00
Juanjo Bazán
592fdffe4e
adds results creation by poll officers
2017-02-02 14:44:44 +01:00
rgarcia
1dbdabb69a
adds consistency to spacing
2016-11-16 19:42:35 +01:00
kikito
048ada3e17
Adds poll partial result
2016-11-11 19:08:32 +01:00