simple_nested_set 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,7 +72,7 @@ module SimpleNestedSet
72
72
  attributes.each { |key, value| attributes[key] = nil if value == 'null' }
73
73
 
74
74
  [:parent, :left, :right].each do |key|
75
- attributes[:"#{key}_id"] = attributes.delete(key).id if attributes.key?(key)
75
+ attributes[:"#{key}_id"] = attributes.delete(key).id if attributes[key]
76
76
  end
77
77
 
78
78
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleNestedSet
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-04 00:00:00 +01:00
18
+ date: 2010-11-09 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency