Sha256: dbdf9035a33e15534e04a184054d44b4eae69a4cbc4eb2a5d727b2c0b3950003

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

require 'activeadmin'

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

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

      initializer "add 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

5 entries across 5 versions & 1 rubygems

Version Path
active_admin-sortable_tree-0.3.0 lib/active_admin/sortable_tree/engine.rb
active_admin-sortable_tree-0.2.1 lib/active_admin/sortable_tree/engine.rb
active_admin-sortable_tree-0.2.0 lib/active_admin/sortable_tree/engine.rb
active_admin-sortable_tree-0.1.0 lib/active_admin/sortable_tree/engine.rb
active_admin-sortable_tree-0.0.1 lib/active_admin/sortable_tree/engine.rb