rails_admin_nestable 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,7 +8,7 @@ Reorganise model data with a drag and drop tree/list structure.
8
8
  To enable rails_admin_nestable, add the following to your `Gemfile`:
9
9
 
10
10
  ```ruby
11
- gem 'rails_admin_nestable', '0.0.4'
11
+ gem 'rails_admin_nestable'
12
12
  ```
13
13
 
14
14
  Add in your `config/initializers/rails_admin.rb` initializer the configuration:
@@ -1,7 +1,4 @@
1
- //= require rails_admin/jquery.nestable.js
2
- //= require_self
3
-
4
- $(document).ready ->
1
+ jQuery ->
5
2
  $tree_nodes = $('#tree_nodes')
6
3
  $tree_nodes_options = {}
7
4
  $tree_nodes_max_depth = $tree_nodes.data('max-depth')
@@ -4,5 +4,7 @@
4
4
  %ol.dd-list
5
5
  = nested_tree_nodes @tree_nodes
6
6
 
7
+
7
8
  = stylesheet_link_tag 'rails_admin/rails_admin_nestable'
9
+ = javascript_include_tag 'rails_admin/jquery.nestable'
8
10
  = javascript_include_tag 'rails_admin/rails_admin_nestable'
@@ -1,7 +1,7 @@
1
1
  module RailsAdminNestable
2
2
  class Engine < ::Rails::Engine
3
3
 
4
- initializer "RailsAdminNestable precompile hook", group: :all do |app|
4
+ initializer "RailsAdminNestable precompile hook" do |app|
5
5
  app.config.assets.precompile += %w(rails_admin/rails_admin_nestable.js rails_admin/jquery.nestable.js rails_admin/rails_admin_nestable.css)
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminNestable
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_nestable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: