From be48ed479cb844b41f38054b35b9724559a088f0 Mon Sep 17 00:00:00 2001 From: Giallombardo Nathan Date: Fri, 31 May 2024 12:05:53 +0200 Subject: [PATCH] fix record_invalid init --- lib/couchbase-orm/persistence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchbase-orm/persistence.rb b/lib/couchbase-orm/persistence.rb index a837e404..3b5c7117 100644 --- a/lib/couchbase-orm/persistence.rb +++ b/lib/couchbase-orm/persistence.rb @@ -36,7 +36,7 @@ def create!(attributes = nil, &block) # Raise an error if validation failed. def fail_validate!(document) - raise Error::RecordInvalid.new("Failed to save the record", document) + raise Error::RecordInvalid.new(document) end # Allow classes to overwrite the default document name