Sha256: 4a8c2ead3e50c837c3a6143425540a48212a1f05c30edbbcf53cdfe32a2e116f

Contents?: true

Size: 877 Bytes

Versions: 5

Compression:

Stored size: 877 Bytes

Contents

# frozen_string_literal: true
require "rails"
require "active_support/all"

require "decidim/core"
require "jquery-rails"
require "sassc-rails"
require "foundation-rails"
require "foundation_rails_helper"

require "decidim/comments/query_extensions"
require "decidim/comments/mutation_extensions"

module Decidim
  module Comments
    # Decidim's core Rails Engine.
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::Comments

      initializer "decidim_comments.assets" do |app|
        app.config.assets.precompile += %w(decidim_comments_manifest.js)
      end

      initializer "decidim_comments.query_extensions" do
        Comments::QueryExtensions.extend!(Decidim::Api::QueryType)
      end

      initializer "decidim_comments.mutation_extensions" do
        Comments::MutationExtensions.extend!(Decidim::Api::MutationType)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
decidim-comments-0.0.5 lib/decidim/comments/engine.rb
decidim-0.0.5 decidim-comments/lib/decidim/comments/engine.rb
decidim-0.0.4 decidim-comments/lib/decidim/comments/engine.rb
decidim-comments-0.0.3 lib/decidim/comments/engine.rb
decidim-0.0.3 decidim-comments/lib/decidim/comments/engine.rb