lib/active_remote/persistence.rb in active_remote-5.1.1 vs lib/active_remote/persistence.rb in active_remote-5.2.0.alpha

- old
+ new

@@ -46,10 +46,10 @@ end # Instantiate a record with the given remote attributes. Generally used # when retrieving records that already exist, so @new_record is set to false. # - def instantiate(new_attributes, options = {}) + def instantiate(new_attributes = {}, options = {}) attributes = self.build_from_rpc(new_attributes) new_object = self.allocate.init_with(attributes) new_object.readonly! if options[:readonly] new_object