lib/skylight/normalizers/process_action.rb in skylight-0.2.5 vs lib/skylight/normalizers/process_action.rb in skylight-0.2.6
- old
+ new
@@ -19,10 +19,12 @@
def normalize_payload(payload)
normalized = {}
PAYLOAD_KEYS.each do |key|
- normalized[key] = payload[key]
+ val = payload[key]
+ val = val.inspect unless val.is_a?(String) || val.is_a?(Numeric)
+ normalized[key] = val
end
normalized
end
end