examples/embeds_many/with_if.rb in transcriber-0.0.9 vs examples/embeds_many/with_if.rb in transcriber-0.0.10

- old
+ new

@@ -7,15 +7,15 @@ class Root < Transcriber::Resource property :id embeds_many :items, if: proc {id == "10"} end -@root_with_items = Root.parse({"id" => 10, "items" => [{"id" => 2000}]}).first +@root_with_items = Root.parse({id: 10, items: [{id: 2000}]}).first puts "root: #{@root_with_items.inspect}" puts "resource: #{@root_with_items.resource}" -@root_without_items = Root.parse({"id" => 1, "items" => [{"id" => 2000}]}).first +@root_without_items = Root.parse({id: 1, items: [{id: 2000}]}).first puts "root: #{@root_without_items.inspect}" puts "resource: #{@root_without_items.resource}" \ No newline at end of file