Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrey08 committed Jan 18, 2024
1 parent 382b437 commit 6a57fcb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/active_force/sobject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a57fcb

Please sign in to comment.