Sha256: 34231ee07fbcedec94156a5c54785a492fa334c9df67b05da83c1041da2dfec1

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Posts
    class MeetingCell < Decidim::ViewModel
      include PostCellsHelper
      include Decidim::Meetings::MeetingCellsHelper
      include Cell::ViewModel::Partial

      def show
        render :show
      end

      def meeting
        model
      end

      def meeting_author
        model.decidim_author_id
      end

      def meeting_title
        translated_attribute model.title
      end

      def meeting_description
        translated_attribute model.description
      end

      def meeting_address
        model.address
      end

      def meeting_location
        translated_attribute model.location
      end

      def comments_enabled
        model.comments_enabled?
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-posts-1.0.0 app/cells/decidim/posts/meeting_cell.rb