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: 15,902 of 196,721
Downloads: 134,607
Daily
Ranking: 5,154 of 196,694
Downloads: 447
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,728,237,794 | bundler |
| 37 | 835,846,227 | activerecord |
| 98 | 499,434,149 | simplecov |
| 284 | 194,725,346 | sqlite3 |
| 4,259 | 2,480,559 | jdbc-sqlite3 |
| 4,373 | 2,311,909 | jeweler |
| 4,413 | 2,256,749 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |