acts_as_graph_object 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,11 +45,9 @@ module ActsAsGraphObject
45
45
  end
46
46
 
47
47
  # add any custom properties..
48
- unless options[:custom].empty?
49
- properties[configuration.namespace] ||= {}
50
- Array(options[:custom]).each do |property|
51
- properties[configuration.namespace][property] = self.send(property)
52
- end
48
+ properties[configuration.namespace] ||= {} unless options[:custom].nil?
49
+ Array(options[:custom]).each do |property|
50
+ properties[configuration.namespace][property] = self.send(property)
53
51
  end
54
52
 
55
53
  properties
@@ -1,3 +1,3 @@
1
1
  module ActsAsGraphObject
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_graph_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: