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: 19,995 of 193,241
Downloads: 85,975
Daily
Ranking: 11,722 of 193,214
Downloads: 34
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,441,694,098 | bundler |
| 36 | 794,042,868 | activerecord |
| 97 | 470,466,552 | simplecov |
| 279 | 183,901,264 | sqlite3 |
| 4,185 | 2,425,715 | jdbc-sqlite3 |
| 4,316 | 2,221,780 | jeweler |
| 4,327 | 2,211,944 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |