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,841 of 188,757
Downloads: 70,497
Daily
Ranking: 12,537 of 188,742
Downloads: 46
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,119,417,231 | bundler |
| 36 | 740,878,701 | activerecord |
| 99 | 437,027,655 | simplecov |
| 276 | 170,904,501 | sqlite3 |
| 4,129 | 2,316,498 | jdbc-sqlite3 |
| 4,238 | 2,147,148 | activerecord-jdbcsqlite3-adapter |
| 4,304 | 2,061,674 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |