Class: Decidim::Elections::ElectionMetadataCell

Inherits:
CardMetadataCell
  • Object
show all
Defined in:
app/cells/decidim/elections/election_metadata_cell.rb

Overview

This cell renders metadata for an instance of an Election

Instance Method Summary collapse

Constructor Details

#initializeElectionMetadataCell

Returns a new instance of ElectionMetadataCell.



7
8
9
10
11
# File 'app/cells/decidim/elections/election_metadata_cell.rb', line 7

def initialize(*)
  super

  @items.prepend(*election_items)
end