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: 21,020 of 191,483
Downloads: 76,509
Daily
Ranking: 8,412 of 191,454
Downloads: 223
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,294,095,825 | bundler |
| 36 | 770,906,816 | activerecord |
| 99 | 455,133,578 | simplecov |
| 278 | 177,488,390 | sqlite3 |
| 4,159 | 2,385,784 | jdbc-sqlite3 |
| 4,286 | 2,185,395 | activerecord-jdbcsqlite3-adapter |
| 4,294 | 2,168,683 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |