Sha256: bb942d558f1a2dd48879e93383c96f5478f8dced7ab5138da8e51182e020d44e

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Posts
    # Custom helpers, scoped to the feeds engine.
    #
    module ApplicationHelper
      include PaginateHelper
      include SanitizeHelper
      # include Decidim::Posts::PostsHelper
      include ::Decidim::EndorsableHelper
      include ::Decidim::FollowableHelper
      include Decidim::Comments::CommentsHelper

      def posts_component_for_meeting(meeting)
        meeting.component.participatory_space.components.find_by(manifest_name: "posts")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-posts-1.0.0 app/helpers/decidim/posts/application_helper.rb