From 6a57fcb2389394d32f541d7c589696e3d14636bd Mon Sep 17 00:00:00 2001 From: Billy Frey Date: Thu, 18 Jan 2024 10:58:34 -0700 Subject: [PATCH] fix spacing --- lib/active_force/sobject.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/active_force/sobject.rb b/lib/active_force/sobject.rb index 75bfde8..6fe9768 100644 --- a/lib/active_force/sobject.rb +++ b/lib/active_force/sobject.rb @@ -113,14 +113,14 @@ def create! end def uninitialize_attributes(attrs) - return if attrs.blank? - self.instance_variable_get(:@attributes).instance_variable_get(:@attributes).each do |key, value| - if attrs.include?(self.mappings.dig(value.name.to_sym)) - self.instance_variable_get(:@attributes).instance_variable_get(:@attributes)[key] = ActiveModel::Attribute::UninitializedValue.new(value.name, value.type) - else - key - end + return if attrs.blank? + self.instance_variable_get(:@attributes).instance_variable_get(:@attributes).each do |key, value| + if attrs.include?(self.mappings.dig(value.name.to_sym)) + self.instance_variable_get(:@attributes).instance_variable_get(:@attributes)[key] = ActiveModel::Attribute::UninitializedValue.new(value.name, value.type) + else + key end + end end def create