Categories: None [Edit]
protective
Protect records from being destroyed in a declarative way. Simply add 'protect_if :dont_delete, "Record is marked as not deletable"' to your ActiveRecord model. Your record will no be destroyed and the given message is added to the errors object.
Total
Ranking: 22,221 of 187,960
Downloads: 67,637
Daily
Ranking: 6,287 of 187,950
Downloads: 384
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 1 | 3,046,650,903 | bundler |
| 36 | 726,153,212 | activerecord |
| 99 | 428,988,492 | simplecov |
| 275 | 167,444,416 | sqlite3 |
| 4,127 | 2,266,084 | jdbc-sqlite3 |
| 4,218 | 2,120,255 | activerecord-jdbcsqlite3-adapter |
| 4,307 | 2,019,664 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |