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,106 of 188,299
Downloads: 68,701
Daily
Ranking: 7,909 of 188,294
Downloads: 36
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,083,955,929 | bundler |
| 36 | 733,530,743 | activerecord |
| 99 | 433,034,919 | simplecov |
| 275 | 169,239,905 | sqlite3 |
| 4,128 | 2,289,048 | jdbc-sqlite3 |
| 4,229 | 2,131,141 | activerecord-jdbcsqlite3-adapter |
| 4,308 | 2,036,047 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |