Commit c7786d8
committed
fix: add comment explaining rescue Sequel::ValidationFailed in service broker registration
The around_save hook on the ServiceBroker model catches unique constraint
violations and adds errors to the model before raising ValidationFailed.
The rescue block returns nil, and callers access errors via the delegated
errors method.1 parent e2f5027 commit c7786d8
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
0 commit comments