active_admin-awesome_nested_set 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f950106705d5fca213945db645f68dce139498bb
4
- data.tar.gz: 03a0e670450faadcda7fc888f67a4858dccc72c9
3
+ metadata.gz: 9b4a64c0bf017f17fbaab722bd83ec1b59cbba37
4
+ data.tar.gz: 91e7fa3009ba145c9ebda3223bdc21e9aa20bb78
5
5
  SHA512:
6
- metadata.gz: b71114c6b8a623d679ecc35d037f42a8714166ec845cc75fd173f67e3e710d69b2d500bb8b6c684af9b6101ef455a8e9e51192e8ebc9c0e93fb016bb254b4b8c
7
- data.tar.gz: f06dc74523a37e9b408f37d3003986590251b626cd0976c71a4a9e7788a5ae2848295a4f40bbd21c9b253c3ddd4b29c9d5f7491e7bdbd3a60bce07990f88f767
6
+ metadata.gz: 225df1e178658d01875142257078aae87dbcd177bf15043c428258c3e048aa2c7bc77f54e456ab4eda07ca4df0e802a6d78109ebc38f37e2fb1742d70dd688a5
7
+ data.tar.gz: 5f59e1b3582d66ce7ee7f3bebb8b986be002c3a8f74c08e2376867982b6a1f8a459c22ea2b6426bf28cd62d8426b534ca6caebe623bcba27328e98029a5b5bd0
@@ -0,0 +1,10 @@
1
+ ru:
2
+ awesome_nested_set:
3
+ moved_to_top: "%{resource} перемещен(a) на первую позицию"
4
+ moved_up: "%{resource} перемещен(a) вверх"
5
+ moved_down: "%{resource} перемещен(a) вниз"
6
+ moved_to_bottom: "%{resource} перемещен(a) на последнюю позицию"
7
+ illegal_move_to_top: "%{resource} переместить на первую позицию не удалось"
8
+ illegal_move_up: "%{resource} переместить вверх не удалось"
9
+ illegal_move_down: "%{resource} переместить вниз не удалось"
10
+ illegal_move_to_bottom: "%{resource} переместить на последнюю позицию не удалось"
@@ -47,10 +47,10 @@ module ActiveAdmin
47
47
  # end
48
48
  def sortable_tree_columns
49
49
  column "▲".html_safe do |resource|
50
- link_to("▲".html_safe, self.send(:"move_up_admin_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.left_sibling
50
+ link_to("▲".html_safe, self.send(:"move_up_#{ActiveAdmin.application.default_namespace}_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.left_sibling
51
51
  end
52
52
  column "▼".html_safe do |resource|
53
- link_to("▼".html_safe, self.send(:"move_down_admin_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.right_sibling
53
+ link_to("▼".html_safe, self.send(:"move_down_#{ActiveAdmin.application.default_namespace}_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.right_sibling
54
54
  end
55
55
  end
56
56
 
@@ -1,6 +1,6 @@
1
1
  module ActiveAdmin
2
2
  module AwesomeNestedSet
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
6
6
 
@@ -22,10 +22,10 @@ module ActiveAdmin
22
22
  def get_nested_set class_or_item
23
23
  result = []
24
24
 
25
- roots = class_or_item.respond_to?(:scoped) ? class_or_item.roots : class_or_items
25
+ roots = class_or_item.respond_to?(:roots) ? class_or_item.roots : class_or_item
26
26
 
27
27
  items = roots.each do |root|
28
- result += root.self_and_descendants.compact
28
+ result += root.self_and_descendants.to_a.compact
29
29
  end
30
30
 
31
31
  result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin-awesome_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -238,6 +238,7 @@ files:
238
238
  - Rakefile
239
239
  - config/locales/active_admin-awesome_nested_set.de.yml
240
240
  - config/locales/active_admin-awesome_nested_set.en.yml
241
+ - config/locales/active_admin-awesome_nested_set.ru.yml
241
242
  - lib/active_admin-awesome_nested_set.rb
242
243
  - lib/active_admin/awesome_nested_set/engine.rb
243
244
  - lib/active_admin/awesome_nested_set/helper.rb
@@ -263,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
264
  version: '0'
264
265
  requirements: []
265
266
  rubyforge_project:
266
- rubygems_version: 2.4.6
267
+ rubygems_version: 2.4.8
267
268
  signing_key:
268
269
  specification_version: 4
269
270
  summary: Provides sortable_columns helper in active admin resource definitions.