lib/ensurance.rb in ensurance-0.1.24 vs lib/ensurance.rb in ensurance-0.1.25

- old
+ new

@@ -58,10 +58,10 @@ nil end else record = find_by(ensure_field => value) if value.present? && !value.is_a?(Hash) end - record = nil if record&.__send__(ensure_field) != value + record = nil if record&.__send__(ensure_field).to_s != value.to_s break if record end found << record end found.compact!