action_kit_api 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/action_kit_api/data_model.rb +3 -11
- data/lib/action_kit_api/version.rb +1 -1
- metadata +2 -2
@@ -28,14 +28,8 @@ module ActionKitApi
|
|
28
28
|
|
29
29
|
call = "#{class_name}.save_or_create"
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
ap call
|
34
|
-
ap attrs_hash
|
35
|
-
else
|
36
|
-
puts call
|
37
|
-
puts attrs_hash
|
38
|
-
end
|
31
|
+
puts call
|
32
|
+
puts attrs_hash
|
39
33
|
|
40
34
|
response = ActionKitApi.connection.call(call, attrs_hash)
|
41
35
|
|
@@ -72,9 +66,7 @@ module ActionKitApi
|
|
72
66
|
user_hash = {}
|
73
67
|
|
74
68
|
self.instance_variables.each do |iv|
|
75
|
-
|
76
|
-
key = iv.delete("@").to_sym
|
77
|
-
end
|
69
|
+
key = iv.to_s.delete("@").to_sym
|
78
70
|
|
79
71
|
next if key == :required_attrs
|
80
72
|
next if key == :read_only_attrs
|