Sha256: 1b1c9cc27af866aec48cdbe87dbaee10184724397d86810e15e0c6a5a1dacd31

Contents?: true

Size: 629 Bytes

Versions: 10

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Comments
    # This is the engine that runs on the public interface of `decidim-comments`.
    class AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Comments::Admin

      paths["db/migrate"] = nil

      initializer "decidim_comments.inject_abilities_to_user" do |_app|
        Decidim.configure do |config|
          config.admin_abilities += ["Decidim::Comments::Abilities::AdminUser"]
          config.admin_abilities += ["Decidim::Comments::Abilities::ProcessAdminUser"]
        end
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
decidim-comments-0.4.0 lib/decidim/comments/admin_engine.rb
decidim-0.4.0 decidim-comments/lib/decidim/comments/admin_engine.rb
decidim-comments-0.3.2 lib/decidim/comments/admin_engine.rb
decidim-0.3.2 decidim-comments/lib/decidim/comments/admin_engine.rb
decidim-comments-0.3.1 lib/decidim/comments/admin_engine.rb
decidim-0.3.1 decidim-comments/lib/decidim/comments/admin_engine.rb
decidim-comments-0.3.0 lib/decidim/comments/admin_engine.rb
decidim-0.3.0 decidim-comments/lib/decidim/comments/admin_engine.rb
decidim-comments-0.2.0 lib/decidim/comments/admin_engine.rb
decidim-0.2.0 decidim-comments/lib/decidim/comments/admin_engine.rb