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].
|
49
|
-
|
50
|
-
|
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
|