Sha256: d1c0b78a6fd72a0a44dd4331b1547f7ad37775c9b69e09dd35cce91bd40cf066

Contents?: true

Size: 398 Bytes

Versions: 65

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # This cell renders the assembly card for an instance of an Assembly
    # the default size is the Medium Card (:m)
    class AssemblyCell < Decidim::ViewModel
      def show
        cell card_size, model, options
      end

      private

      def card_size
        "decidim/assemblies/assembly_m"
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
decidim-assemblies-0.27.9 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.8 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.7 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.6 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.10 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.9 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.5 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.8 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.4 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.3 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.7 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.5 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.2 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.4 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.0 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.3 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.0.rc2 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.27.0.rc1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.26.2 app/cells/decidim/assemblies/assembly_cell.rb