Skip to content

Commit

Permalink
fix record_invalid init
Browse files Browse the repository at this point in the history
  • Loading branch information
Giallombardo Nathan committed May 31, 2024
1 parent 262eab7 commit be48ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchbase-orm/persistence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be48ed4

Please sign in to comment.