Skip to content

Commit

Permalink
Merge pull request #86 from Mapotempo/fix_errors_message_default_name…
Browse files Browse the repository at this point in the history
…space

fix errors message default namespace
  • Loading branch information
giallon authored May 31, 2024
2 parents c6c82a8 + a9ff1ba commit ec1c28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchbase-orm/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec1c28f

Please sign in to comment.