factor 0.5.09 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/factor/version.rb +1 -1
- data/lib/runtime.rb +4 -0
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/factor/version.rb
CHANGED
data/lib/runtime.rb
CHANGED
@@ -163,6 +163,10 @@ module Factor
|
|
163
163
|
def error_handle_call(listener_response, &block)
|
164
164
|
payload = if listener_response['payload'].is_a?(Hash)
|
165
165
|
OpenStruct.new(listener_response['payload'])
|
166
|
+
elsif listener_response['payload'].is_a?(Array)
|
167
|
+
listener_response['payload'].map do |i|
|
168
|
+
i.is_a?(Hash) ? OpenStruct.new(i) : i
|
169
|
+
end
|
166
170
|
else
|
167
171
|
listener_response['payload']
|
168
172
|
end
|