rails_admin_nestable 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWZiZjYwMTllMGU0ZjEyYjNhYjU4ZmMwNDZjZWQ2MGYzMDVhNWY4ZQ==
4
+ ZWFjMGUyNGEwMzc4OWFiOTVhYzlmZWM3YmM0MzcyZjJhNzI2YjQwOA==
5
5
  data.tar.gz: !binary |-
6
- ODBjYmVhY2IzMmFlY2Y5MmFhMjE0NjQ4MTA0OWZlODA5ZmFiOGQxOA==
6
+ MTM2YWRiODk0ZmM3NTM4NWE4NWI1ODFlMTcwNTFhZjg5Y2MxYjZkOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2NiZDM2MmQ4MWQ1OWY5MGRiY2YyNTQzZThmZDJkMDRiNmM3ZjQ4MjU0NDQ5
10
- YmI1MWI5MTczYjg0YTcxNTQxYmJlMTliZDZjNDJhYTEzNmQ1NDRmODFiMDg5
11
- ZWY1YTI1MGE5NGJkOTY3NTk5NGRmMzFhODllZDhiNjBjMjg4YWQ=
9
+ NDBmN2ViZDRjZWQ0MWMzYWM3YjBlZWM2MzQ4MmIyMTYzMGZhMTNiMzE1MjE0
10
+ ZDMxNjMzMmQxYTM5OWE1YTdhZjhhZmU3MzdiODA3NWFmYTM2NGEzOGUyYjY5
11
+ N2JhNGEzNWFlNjcxZGUyYTQyMjk0YTI5MDZhNDAzODk5ZDI5YmU=
12
12
  data.tar.gz: !binary |-
13
- NDdlYWFhOTYwYjJjMjRjMmJlODE3NTBhM2IyNWYxZGU0ZmU5NjlhMzkwODVl
14
- NmJlM2IwNDBhNmJmMGE4ZjRkMzBjNjc3Yzg0MzhlZjliMTllYTlhZjQ4N2U3
15
- YzFlNzQ4MGM4OTc1YjIzZjU3ZjBhMWEzM2UxMjlhYmU3ODQxNTc=
13
+ MWJhYjMwZDA5ZDViZjg0YTRmYTAxYzM5ZjA4NTA4YjRlNWM3YTUyMjZiN2Y2
14
+ NmJjY2FhMzNiZDI4ZTRjZmM4YTg0Y2U4NzAzYzlkMjQ3ZmJmODYyM2FjZGU4
15
+ MWRiYmY3OWQzYjQ4ZWMzZTQ4NmM4NWEwMTU4M2M1ODAzMDY0ZDg=
@@ -0,0 +1,14 @@
1
+ de:
2
+ admin:
3
+ actions:
4
+ nestable:
5
+ title: "%{model_label} sortieren"
6
+ menu: "Sortieren"
7
+ breadcrumb: "Sortieren"
8
+ link: "Sortieren"
9
+ bulk_link: "%{model_label_plural} sortieren"
10
+ done: "Sortiert"
11
+ success: "Sortierung gespeichert"
12
+ error: "Fehler"
13
+ update: "Speichern"
14
+ live_update: "Automatisch speichern"
@@ -87,13 +87,14 @@ module RailsAdmin
87
87
  end
88
88
 
89
89
  query = list_entries(@model_config, :nestable, false, false).reorder(nil).merge(scope)
90
+ position_field = @nestable_conf.options[:position_field]
90
91
 
91
92
  if @nestable_conf.tree?
92
- @tree_nodes = query.arrange(order: @nestable_conf.options[:position_field])
93
+ @tree_nodes = position_field.present?? query.arrange(order: position_field) : query.arrange
93
94
  end
94
95
 
95
96
  if @nestable_conf.list?
96
- @tree_nodes = query.order(@nestable_conf.options[:position_field])
97
+ @tree_nodes = query.order(position_field)
97
98
  end
98
99
 
99
100
  render action: @action.template_name
@@ -1,3 +1,3 @@
1
1
  module RailsAdminNestable
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.1.6
4
+ version: 0.1.7
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: 2013-11-16 00:00:00.000000000 Z
11
+ date: 2013-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -93,6 +93,7 @@ files:
93
93
  - app/assets/stylesheets/rails_admin/rails_admin_nestable.css.scss
94
94
  - app/helpers/rails_admin/nestable_helper.rb
95
95
  - app/views/rails_admin/main/nestable.html.haml
96
+ - config/locales/nestable.de.yml
96
97
  - config/locales/nestable.en.yml
97
98
  - config/locales/nestable.es.yml
98
99
  - config/locales/nestable.it.yml