Sha256: cbdda8c945c40bfeb3d41f2957fc343d56371dd6c18d6b089cad04c61a7efe66

Contents?: true

Size: 898 Bytes

Versions: 4

Compression:

Stored size: 898 Bytes

Contents

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

require "decidim/core"
require "jquery-rails"
require "sassc-rails"
require "turbolinks"
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

4 entries across 4 versions & 2 rubygems

Version Path
decidim-comments-0.0.2 lib/decidim/comments/engine.rb
decidim-0.0.2 decidim-comments/lib/decidim/comments/engine.rb
decidim-comments-0.0.1 lib/decidim/comments/engine.rb
decidim-0.0.1 decidim-comments/lib/decidim/comments/engine.rb