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,236 of 197,085
Downloads: 147,394
Daily
Ranking: 5,966 of 197,066
Downloads: 242
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,796,160,121 | bundler |
| 37 | 845,746,438 | activerecord |
| 98 | 505,778,426 | simplecov |
| 285 | 196,939,989 | sqlite3 |
| 4,272 | 2,492,687 | jdbc-sqlite3 |
| 4,388 | 2,322,951 | jeweler |
| 4,429 | 2,267,183 | activerecord-jdbcsqlite3-adapter |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |