examples/embeds_one/simple.rb in rest_model-0.1.1 vs examples/embeds_one/simple.rb in rest_model-0.1.2
- old
+ new
@@ -6,7 +6,7 @@
class Item < RestModel
properties :id, :name
end
-@root = Root.parse({item: {id: 2000}}).first
+@root = Root.from_source!(item: {id: 2000}).first
inspect_rest_model(@root)