Skip to content

Commit

Permalink
Remove unused code in votings
Browse files Browse the repository at this point in the history
We should be able to restrict voting to users registered before a
certain point in time. However, this is not yet implemented so I'm
removing the unsued code for now.
  • Loading branch information
deivid-rodriguez committed May 29, 2018
1 parent c2adcf6 commit f30b164
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions decidim-module-votings/app/models/decidim/votings/voting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ def active?
(start_date.to_datetime..end_date.to_datetime).cover? DateTime.current
end

def in_census_limit?(user)
user.created_at < census_date_limit
end

def in_scope?(_user)
true
end
Expand Down
1 change: 0 additions & 1 deletion decidim-module-votings/config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ ca:
confirm_destroy: ¿Estàs segur?
voters: descarregar identificadors de votants
messages:
census_limit: El teu usuari no té l'antiguitat requerida per participar en aquesta votació.
finished: Ha arribat la data límit per votar. La votació està tancada.
invalid_scope: No pots votar en aquesta zona.
already_voted: Ja has votat en aquesta votació. No obstant això, pots canviar el teu vot mentre la votació continuï oberta
Expand Down
1 change: 0 additions & 1 deletion decidim-module-votings/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ en:
confirm_destroy: ¿Are you sure?
voters: Download voters identifiers
messages:
census_limit: Tu usuario no tiene la antigüedad requerida para participar en esta votación.
finished: Ha llegado la fecha límite para votar. La votación está cerrada.
invalid_scope: No puedes votar en esta zona.
already_voted: You have already voted on this voting. However, you can change your vote while the voting is still open
Expand Down
1 change: 0 additions & 1 deletion decidim-module-votings/config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ es:
confirm_destroy: ¿Estás seguro?
voters: Descargar identificadores de votantes
messages:
census_limit: Tu usuario no tiene la antigüedad requerida para participar en esta votación.
finished: Ha llegado la fecha límite para votar. La votación está cerrada.
invalid_scope: No puedes votar en esta zona.
already_voted: Ya has votado en esta votación. No obstante, puedes cambiar tu voto mientras la votación continúe abierta
Expand Down

0 comments on commit f30b164

Please sign in to comment.