chrislloyd-even_better_nested_set 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/even_better_nested_set.rb +4 -0
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "even_better_nested_set"
8
- GEM_VERSION = "0.3.1"
8
+ GEM_VERSION = "0.3.2"
9
9
  AUTHOR = "Jonas Nicklas"
10
10
  EMAIL = "jonas.nicklas@gmail.com"
11
11
  HOMEPAGE = "http://github.com/jnicklas/even_better_nested_set/tree/master"
@@ -160,6 +160,10 @@ module EvenBetterNestedSet
160
160
  @cached_children || uncached_children
161
161
  end
162
162
 
163
+ def children?
164
+ children.empty?
165
+ end
166
+
163
167
  def cache_parent(parent) #:nodoc:
164
168
  self.parent = parent
165
169
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrislloyd-even_better_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas