Sha256: 807bed0a69336b517b7811ce434ebcf943008e8d380df68ec56893c550f52598

Contents?: true

Size: 785 Bytes

Versions: 4

Compression:

Stored size: 785 Bytes

Contents

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

require "devise"
require "devise-i18n"
require "decidim/core"
require "jquery-rails"
require "sass-rails"
require "turbolinks"
require "foundation-rails"
require "foundation_rails_helper"
require "jbuilder"
require "rectify"

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

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

      initializer "decidim_admin.inject_abilities_to_user" do |_app|
        Decidim.configure do |config|
          config.abilities += [Decidim::Admin::Abilities::Admin]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
decidim-admin-0.0.1.alpha9 lib/decidim/admin/engine.rb
decidim-0.0.1.alpha9 decidim-admin/lib/decidim/admin/engine.rb
decidim-admin-0.0.1.alpha8 lib/decidim/admin/engine.rb
decidim-0.0.1.alpha8 decidim-admin/lib/decidim/admin/engine.rb