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,522 of 197,744
Downloads: 163,169
Daily
Ranking: 10,440 of 197,724
Downloads: 129
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,863,547,421 | bundler |
| 37 | 855,219,427 | activerecord |
| 97 | 511,923,440 | simplecov |
| 285 | 199,063,254 | sqlite3 |
| 4,289 | 2,503,613 | jdbc-sqlite3 |
| 4,404 | 2,333,162 | jeweler |
| 4,443 | 2,275,566 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |