Sha256: 1231b3c3aa982dedde1c3c9cb208ecb15b698947e7f9eae9a3bb0236088e57d6
Contents?: true
Size: 492 Bytes
Versions: 7
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true module Decidim # Helpers related to icons module CardHelper # Public: Returns a card given an instance of a Component. # # model - The component instance to generate the card for. # options - a Hash with options, for the size of the card # # Returns an HTML. def card_for(model, options = {}) options = { context: { current_user: current_user } }.merge(options) cell "decidim/card", model, options end end end
Version data entries
7 entries across 7 versions & 1 rubygems