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: 16,694 of 196,125
Downloads: 121,504
Daily
Ranking: 7,770 of 196,106
Downloads: 91
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,667,363,143 | bundler |
| 37 | 826,900,046 | activerecord |
| 98 | 493,495,493 | simplecov |
| 281 | 192,458,273 | sqlite3 |
| 4,250 | 2,468,529 | jdbc-sqlite3 |
| 4,370 | 2,296,720 | jeweler |
| 4,401 | 2,246,030 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |