Commit ba9e52e
committed
Forward
Forward the `:context` option from `Base#save` and `Base#save!` to the
underlying `Validations#valid?` call.
This commit alos includes test coverage for directly calling
`Validations#valid?` with a `context` value, since that behavior wasn't
covered by tests elsewhere in the suite.:context option from #save and #save!
1 parent 4fffccc commit ba9e52e
File tree
4 files changed
+40
-6
lines changed- lib/active_resource
- test
- cases
- fixtures
4 files changed
+40
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1477 | 1477 | | |
1478 | 1478 | | |
1479 | 1479 | | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
1480 | 1486 | | |
1481 | 1487 | | |
1482 | 1488 | | |
| |||
1489 | 1495 | | |
1490 | 1496 | | |
1491 | 1497 | | |
1492 | | - | |
| 1498 | + | |
1493 | 1499 | | |
1494 | 1500 | | |
1495 | 1501 | | |
| |||
1500 | 1506 | | |
1501 | 1507 | | |
1502 | 1508 | | |
1503 | | - | |
| 1509 | + | |
1504 | 1510 | | |
1505 | | - | |
| 1511 | + | |
| 1512 | + | |
1506 | 1513 | | |
1507 | 1514 | | |
1508 | 1515 | | |
1509 | 1516 | | |
1510 | 1517 | | |
1511 | | - | |
1512 | | - | |
| 1518 | + | |
| 1519 | + | |
1513 | 1520 | | |
1514 | 1521 | | |
1515 | 1522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
41 | 59 | | |
42 | 60 | | |
43 | 61 | | |
| |||
56 | 74 | | |
57 | 75 | | |
58 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
59 | 85 | | |
60 | 86 | | |
61 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments