Class: Decidim::DataConsentCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::DataConsentCell
- Defined in:
- app/cells/decidim/data_consent_cell.rb
Instance Method Summary collapse
Instance Method Details
#categories ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/cells/decidim/data_consent_cell.rb', line 9 def categories @categories ||= Decidim..map do |category| { slug: category[:slug], title: t("layouts.decidim.data_consent.modal.#{category[:slug]}.title"), description: t("layouts.decidim.data_consent.modal.#{category[:slug]}.description"), mandatory: category[:mandatory], items: category.has_key?(:items) ? category[:items] : [] } end end |
#show ⇒ Object
5 6 7 |
# File 'app/cells/decidim/data_consent_cell.rb', line 5 def show render end |