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
taitus
6e62ea81a9
Add new model presence validates
...
- Only validate :date_of_birth and :postal_code presence when the
application has configured Remote Census and their alias fields
has values.
2019-07-29 13:10:09 +02:00
taitus
c0c967b961
Create Management::Document initialize
...
Allow parse :date_of_birth on Management::Document initialize
2019-07-29 13:10:09 +02:00
taitus
bc36c5a987
Allow to Management::Document works with CustomCensusAPI
...
- Allow receive new fields :date_of_birth and :postal_code
- Send new fields to CensusCaller call method to allow use
on RemoteCensusAPI
2019-07-29 13:10:09 +02:00
taitus
a382f7c301
Update all CensusCaller calls with new arguments.
2019-07-29 13:10:09 +02:00
María Checa
d576fd5951
Merge branch 'master' into 1725-census_local_copy_user_verification
2017-07-14 15:50:26 +02:00
María Checa
089c690b49
Created new entry point CensusCaller
...
Here's a better alternative than the first one. Added a new abstraction level from which are performed both types of census calls, while the logic of those is managed in their own library.
2017-07-10 12:22:30 +02:00
Bertocq
97d7a21791
Fix all Style/RedundantReturn rubocop issues
2017-07-05 11:55:52 +02:00
kikito
386a5aa941
Fixes typos
2017-02-03 16:08:58 +01:00
kikito
ba87eaa47c
Moves Age calculation to a module instead of monkeypatching Date
2017-02-03 15:35:41 +01:00
kikito
95f80651b1
uses Date#age_in_years when calculating ages
2017-02-03 12:56:40 +01:00
Juanjo Bazán
e2118f701b
removes hardcoded age, favours setting
2017-01-09 16:05:27 +01:00
rgarcia
b12c8d3a5d
validates document uniqueness only for active accounts
2016-12-12 19:11:00 +01:00
kikito
f0b8cfd4a2
Time.now -> Time.current
2016-11-23 19:19:19 +01:00
kikito
3a5928e83f
aligns document verification with Madrid
2016-04-13 12:06:43 +02:00
kikito
3880ef9e24
aligns document verification with census API
2016-04-12 18:35:23 +02:00
Juanjo Bazán
07117f4a49
includes all date in document age verification
2015-10-19 12:18:42 +02:00
rgarcia
0a668ae39a
checks valid age
2015-10-19 11:20:32 +02:00
kikito
d5d5e683d1
Refactors account_info partial
2015-10-07 19:39:59 +02:00
kikito
1fe850b6dc
Renaming of management validations
2015-10-01 19:27:04 +02:00