From a9ff1ba0b2296382e022336bc27b5137e3449108 Mon Sep 17 00:00:00 2001 From: Giallombardo Nathan Date: Fri, 31 May 2024 10:11:07 +0200 Subject: [PATCH] fix errors message default namespace --- lib/couchbase-orm/error.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/couchbase-orm/error.rb b/lib/couchbase-orm/error.rb index aaab0e3e..4f0f7fd1 100644 --- a/lib/couchbase-orm/error.rb +++ b/lib/couchbase-orm/error.rb @@ -14,7 +14,7 @@ def initialize(record = nil) if record @record = record errors = @record.errors.full_messages.join(", ") - message = I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", errors: errors, default: :"errors.messages.record_invalid") + message = I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", errors: errors, default: :"couchbase.errors.messages.record_invalid") else message = "Record invalid" end