Sha256: 2f8277c7a81b40c256ac00c9f86dc61cb208c56175412642b7f29b7c126b3ac7

Contents?: true

Size: 282 Bytes

Versions: 28

Compression:

Stored size: 282 Bytes

Contents

$:.push 'examples'; require 'helper'

class Item < RestModel
  property :id, type: Integer
end

class Root < RestModel
  embeds_many :items
end

@root = Root.from_source!(items: [{id: 2000}, {id: 2001}]).first
@root.update_attributes(items: [{id: 3000}])

inspect_rest_model(@root)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rest_model-0.3.1 examples/update_attributes/embeds_many.rb
rest_model-0.3.0 examples/update_attributes/embeds_many.rb
rest_model-0.2.3 examples/update_attributes/embeds_many.rb
rest_model-0.2.1 examples/update_attributes/embeds_many.rb
rest_model-0.2.0 examples/update_attributes/embeds_many.rb
rest_model-0.1.24 examples/update_attributes/embeds_many.rb
rest_model-0.1.23 examples/update_attributes/embeds_many.rb
rest_model-0.1.22 examples/update_attributes/embeds_many.rb
rest_model-0.1.21 examples/update_attributes/embeds_many.rb
rest_model-0.1.20 examples/update_attributes/embeds_many.rb
rest_model-0.1.19 examples/update_attributes/embeds_many.rb
rest_model-0.1.18 examples/update_attributes/embeds_many.rb
rest_model-0.1.17 examples/update_attributes/embeds_many.rb
rest_model-0.1.16 examples/update_attributes/embeds_many.rb
rest_model-0.1.15 examples/update_attributes/embeds_many.rb
rest_model-0.1.14 examples/update_attributes/embeds_many.rb
rest_model-0.1.13 examples/update_attributes/embeds_many.rb
rest_model-0.1.12 examples/update_attributes/embeds_many.rb
rest_model-0.1.11 examples/update_attributes/embeds_many.rb
rest_model-0.1.10 examples/update_attributes/embeds_many.rb