Sha256: 2784f9d01d6a174a5f4dfe9167b6346bf20974e3969f27456bf755b815b9d510

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

Contents

# frozen_string_literal: true

require "decidim/comments/admin"
require "decidim/comments/api"
require "decidim/comments/engine"
require "decidim/comments/admin_engine"

module Decidim
  # This module contains all the logic related to the comments component.
  # It exposes a single entry point as a rails helper method to render
  # a React component which handle all the comments render and logic.
  module Comments
    autoload :CommentsHelper, "decidim/comments/comments_helper"
    autoload :Commentable, "decidim/comments/commentable"
    autoload :CommentSerializer, "decidim/comments/comment_serializer"
    autoload :CommentVoteSerializer, "decidim/comments/comment_vote_serializer"
    autoload :Export, "decidim/comments/export"
    autoload :Markdown, "decidim/comments/markdown"

    def self.data_portable_entities
      ["Decidim::Comments::Comment", "Decidim::Comments::CommentVote"]
    end

    def self.newsletter_participant_entities
      ["Decidim::Comments::Comment"]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-comments-0.24.3 lib/decidim/comments.rb
decidim-comments-0.24.2 lib/decidim/comments.rb
decidim-comments-0.24.1 lib/decidim/comments.rb
decidim-comments-0.24.0 lib/decidim/comments.rb
decidim-comments-0.24.0.rc2 lib/decidim/comments.rb
decidim-comments-0.24.0.rc1 lib/decidim/comments.rb