Class: Decidim::Votings::PollingStationClosureCertificateCell

Inherits:
Decidim::ViewModel
  • Object
show all
Defined in:
app/cells/decidim/votings/polling_station_closure_certificate_cell.rb

Overview

This cell renders the image of the physical certificate of a Polling Station Closure

Instance Method Summary collapse

Instance Method Details

#has_images?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/cells/decidim/votings/polling_station_closure_certificate_cell.rb', line 7

def has_images?
  model.photos.present?
end