spec/spec_app/app/controllers/instances.rb in praxis-0.18.1 vs spec/spec_app/app/controllers/instances.rb in praxis-0.19.0
- old
+ new
@@ -44,11 +44,16 @@
response.body = JSON.pretty_generate(instances.collect { |i| i.render })
response.headers['Content-Type'] = response_content_type #'application/vnd.acme.instance;type=collection'
response
end
- def show(cloud_id:, id:, junk:, **other_params)
+ def show(cloud_id:, id:, junk:, create_identity_map:, **other_params)
+ if create_identity_map
+ request.identity_map
+ end
+
payload = request.payload
+
response.body = {cloud_id: cloud_id, id: id, junk: junk, other_params: other_params, payload: payload && payload.dump}
response.headers['Content-Type'] = 'application/json'
response
end