Class: Decidim::CardCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::CardCell
- Defined in:
- decidim-core/app/cells/decidim/card_cell.rb
Overview
This cell renders the card of the given instance of a Component delegated to the components’ cell if specified in the manifest otherwise a primary cell wil be shown.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 |
# File 'decidim-core/app/cells/decidim/card_cell.rb', line 8 def show if resource_cell? cell(resource_cell, model, ) else render :show end end |