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: 14,340 of 198,430
Downloads: 168,829
Daily
Ranking: 9,293 of 198,401
Downloads: 181
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,939,528,074 | bundler |
| 37 | 866,211,346 | activerecord |
| 97 | 518,966,733 | simplecov |
| 285 | 201,634,282 | sqlite3 |
| 4,301 | 2,518,312 | jdbc-sqlite3 |
| 4,417 | 2,343,659 | jeweler |
| 4,460 | 2,286,471 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |