Categories: None [Edit]
permittable
Strong parameters answer only which keys may pass. A Permittable contract also says what each field should be: it casts the value to a declared type, validates bounds and formats, applies defaults, and renders every failure as a 422 that names the offending parameter. Because a contract is class-level data rather than code inside the action, it can also be checked against the database when the controller loads, so a column dropped by a migration fails the deploy instead of the request. activesupport is the only runtime dependency.
Total
Ranking: 82,906 of 198,088
Downloads: 11,925
Daily
Ranking: 15,633 of 198,053
Downloads: 18
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 56,813 | 20,560 | concerns_on_rails |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 6 | 1,467,029,580 | activesupport |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | Soang |