Skip to content

Commit

Permalink
Add inline docs for #handle_invalid_record
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjoerd Andringa committed Oct 30, 2023
1 parent 079190e commit 67de7ac
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def save!(record, &block)
handle_invalid_record(exception.record)
end

# Deal with validation errors by responding with an appropriate SCIM error.
#
# +record+:: The record with validation errors.
#
def handle_invalid_record(record)
joined_errors = record.errors.full_messages.join('; ')

Expand Down

0 comments on commit 67de7ac

Please sign in to comment.