Sha256: 4db2d76144139184d0a68ade0472d6a4c40f0cfc3a6660b80344547033bad39e

Contents?: true

Size: 240 Bytes

Versions: 8

Compression:

Stored size: 240 Bytes

Contents

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

class Customer < RestModel
  id type: Integer
  property :login
end

@root = Customer.from_source!(id: 200, login: 'jackiechan2010').first
@root.update_attributes(login: nil)

inspect_rest_model(@root)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rest_model-0.3.1 examples/update_attributes/with_nil_value.rb
rest_model-0.3.0 examples/update_attributes/with_nil_value.rb
rest_model-0.2.3 examples/update_attributes/with_nil_value.rb
rest_model-0.2.1 examples/update_attributes/with_nil_value.rb
rest_model-0.2.0 examples/update_attributes/with_nil_value.rb
rest_model-0.1.24 examples/update_attributes/with_nil_value.rb
rest_model-0.1.23 examples/update_attributes/with_nil_value.rb
rest_model-0.1.22 examples/update_attributes/with_nil_value.rb