Sha256: 92acc0f612d41666a65392ce9c80acc0b513a29f88155cd90c30fabdddd5f946

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

require "activeadmin"

module ActiveAdmin
  module SortableTree
    class Engine < ::Rails::Engine
      engine_name "active_admin-sortable_tree"

      initializer "active_admin-sortable_tree.precompile", group: :all do |app|
        app.config.assets.precompile += [
          "active_admin/sortable.css",
          "active_admin/sortable.js"
        ]
      end

      initializer "active_admin-sortable_tree.register_assets" do
        ActiveAdmin.application.register_stylesheet "active_admin/sortable.css"
        ActiveAdmin.application.register_javascript "active_admin/sortable.js"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_admin-sortable_tree-2.0.0 lib/active_admin/sortable_tree/engine.rb