Skip to content

Commit

Permalink
Merge pull request #88 from Mapotempo/fix_record_invalid_new
Browse files Browse the repository at this point in the history
fix record_invalid init
  • Loading branch information
giallon authored May 31, 2024
2 parents 262eab7 + be48ed4 commit 17feb0b
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 17feb0b

Please sign in to comment.