acts_as_dag 1.1.1 → 1.1.2
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.
- data/lib/acts_as_dag/acts_as_dag.rb +2 -0
- metadata +2 -2
|
@@ -84,6 +84,8 @@ module ActsAsDAG
|
|
|
84
84
|
# Reorganizes the entire class of records based on their name, first resetting the hierarchy, then reoganizing
|
|
85
85
|
# Can pass a list of categories and only those will be reorganized
|
|
86
86
|
def reorganize(categories_to_reorganize = self.all)
|
|
87
|
+
return if categories_to_reorganize.empty?
|
|
88
|
+
|
|
87
89
|
reset_hierarchy(categories_to_reorganize)
|
|
88
90
|
|
|
89
91
|
word_count_groups = categories_to_reorganize.group_by{|category| ActsAsDAG::HelperMethods.word_count(category)}.sort
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_dag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
|
14
14
|
dependencies: []
|
|
15
15
|
description:
|
|
16
16
|
email: technical@rrnpilot.org
|