Sha256: a6f39c33da53ecf6d23a094e17b7684cd612b537dc1ef07122c82213fab731f7

Contents?: true

Size: 389 Bytes

Versions: 7

Compression:

Stored size: 389 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
      end

      private

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-assemblies-0.13.1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.12.2 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.13.0 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.12.1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.13.0.pre1 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.12.0 app/cells/decidim/assemblies/assembly_cell.rb
decidim-assemblies-0.12.0.pre app/cells/decidim/assemblies/assembly_cell.rb