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,535 of 187,591
Downloads: 65,700
Daily
Ranking: 29,500 of 187,571
Downloads: 16
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,011,203,451 | bundler |
| 36 | 719,592,156 | activerecord |
| 98 | 425,235,126 | simplecov |
| 275 | 165,742,106 | sqlite3 |
| 4,125 | 2,239,943 | jdbc-sqlite3 |
| 4,216 | 2,104,299 | activerecord-jdbcsqlite3-adapter |
| 4,298 | 2,004,250 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |