rails_admin_nestable 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/locales/nestable.nl.yml +14 -0
- data/lib/rails_admin_nestable/nestable.rb +2 -2
- data/lib/rails_admin_nestable/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2ac791e86105dcd52e542e242aaa4eb94917b6d
|
|
4
|
+
data.tar.gz: ce892220bcf8ec54b9f2e35d4ca0bf06dd2147ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f070f4ece35aeaf763eb2f79c7c4e2da11f210981985a0829e4beaa8e2c5db7ee4e4ca38c5d9e76fc30d22757956765be321a5a6545811b48effacdebbdbb7cf
|
|
7
|
+
data.tar.gz: 6e8950106dfdc09228eb09d7ab5dc5ac9aa2048c12ac6a16d1366371739a378e963b777a624885e83a303ff3bea267b93402334fefe850b701b040a2cc923521
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Sample demo available at: https://github.com/dalpo/rails_admin_nestable_demo
|
|
|
12
12
|
To enable rails_admin_nestable, add the following to your `Gemfile`:
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
|
-
gem 'rails_admin_nestable'
|
|
15
|
+
gem 'rails_admin_nestable', '~> 0.2.1'
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Add in your `config/initializers/rails_admin.rb` initializer the configuration:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
nl:
|
|
2
|
+
admin:
|
|
3
|
+
actions:
|
|
4
|
+
nestable:
|
|
5
|
+
title: "%{model_label} sorteren"
|
|
6
|
+
menu: "Sorteren"
|
|
7
|
+
breadcrumb: "Sorteren"
|
|
8
|
+
link: "Sorteren"
|
|
9
|
+
bulk_link: "%{model_label_plural} sorteren"
|
|
10
|
+
done: "Gesorteerd"
|
|
11
|
+
success: "Succes"
|
|
12
|
+
error: "Error"
|
|
13
|
+
update: "Opslaan"
|
|
14
|
+
live_update: "Automatisch opslaan"
|
|
@@ -71,9 +71,9 @@ module RailsAdmin
|
|
|
71
71
|
|
|
72
72
|
case @options[:scope].class.to_s
|
|
73
73
|
when 'Proc'
|
|
74
|
-
query.merge(@options[:scope].call)
|
|
74
|
+
query.merge!(@options[:scope].call)
|
|
75
75
|
when 'Symbol'
|
|
76
|
-
query.merge(@abstract_model.model.public_send(@options[:scope]))
|
|
76
|
+
query.merge!(@abstract_model.model.public_send(@options[:scope]))
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
if @nestable_conf.tree?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_admin_nestable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrea Dal Ponte
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -28,16 +28,16 @@ dependencies:
|
|
|
28
28
|
name: rails_admin
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - "<="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 0.6.5
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - "<="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 0.6.5
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: haml-rails
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -81,7 +81,7 @@ dependencies:
|
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
description: RailsAdmin Drag and drop tree view for Ancestry gem with ActiveRecord
|
|
84
|
-
|
|
84
|
+
or MongoID
|
|
85
85
|
email:
|
|
86
86
|
- info@andreadalponte.com
|
|
87
87
|
executables: []
|
|
@@ -100,6 +100,7 @@ files:
|
|
|
100
100
|
- config/locales/nestable.en.yml
|
|
101
101
|
- config/locales/nestable.es.yml
|
|
102
102
|
- config/locales/nestable.it.yml
|
|
103
|
+
- config/locales/nestable.nl.yml
|
|
103
104
|
- config/locales/nestable.sv.yml
|
|
104
105
|
- config/locales/nestable.vi.yml
|
|
105
106
|
- lib/rails_admin_nestable.rb
|
|
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
129
130
|
version: '0'
|
|
130
131
|
requirements: []
|
|
131
132
|
rubyforge_project:
|
|
132
|
-
rubygems_version: 2.
|
|
133
|
+
rubygems_version: 2.4.4
|
|
133
134
|
signing_key:
|
|
134
135
|
specification_version: 4
|
|
135
136
|
summary: RailsAdmin Drag and drop tree view for Ancestry gem
|