Commit Graph

3 Commits

Author SHA1 Message Date
rgarcia
96066aee44 Validates map presence only on create
As we are using an attr_accessor to make sure a user accepts that the
proposal “has no map”, the validation was being run in every save.

Making other things break, for example the updating of the counter
cache `cached_votes_up`, when someone voted for the proposal, as the
attr_accessor `skip_map` was not present
2017-12-26 12:39:29 +01:00
rgarcia
19a084c0c7 adds map validations 2017-12-19 20:32:55 +01:00
taitus
a0603985ef Refactor. 2017-09-27 14:51:35 +02:00