app/commands/decidim/votings/admin/manage_polling_station.rb in decidim-elections-0.26.10 vs app/commands/decidim/votings/admin/manage_polling_station.rb in decidim-elections-0.27.0.rc1

- old
+ new

@@ -2,20 +2,20 @@ module Decidim module Votings module Admin # A command with the shared business logic to manage a polling station - class ManagePollingStation < Rectify::Command + class ManagePollingStation < Decidim::Command def manage_polling_officers(polling_station, president_id, managers_ids) manage_president(polling_station, president_id) manage_managers(polling_station, managers_ids) end private def manage_president(polling_station, president_id) unassign_president(polling_station) - return if president_id.nil? + return if president_id.blank? assign_president(president_id, polling_station) notify_officer(president_id, polling_station.voting) end