action_kit_api 0.3.5 → 0.3.6

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.
@@ -28,14 +28,8 @@ module ActionKitApi
28
28
 
29
29
  call = "#{class_name}.save_or_create"
30
30
 
31
- # Debugging stuff
32
- if self.respond_to?('ap')
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
- if iv.is_a? String
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
@@ -1,3 +1,3 @@
1
1
  module ActionKitApi
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Stelfox