Skip to content

Commit

Permalink
only nil raises
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneyak committed Nov 8, 2023
1 parent d91b2b7 commit df870ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/table_sync/utils/required_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module InstanceMethods

def calculate_not_filled_attributes
attributes
.select { |key, value| key.in?(self.class._required_attributes) && value.blank? }
.select { |key, value| key.in?(self.class._required_attributes) && value.nil? }
.keys
end
end
Expand Down

0 comments on commit df870ca

Please sign in to comment.