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,539 of 189,679
Downloads: 72,627
Daily
Ranking: 12,076 of 189,654
Downloads: 58
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,196,772,394 | bundler |
| 36 | 754,434,487 | activerecord |
| 99 | 445,148,645 | simplecov |
| 277 | 173,462,538 | sqlite3 |
| 4,135 | 2,350,886 | jdbc-sqlite3 |
| 4,259 | 2,164,896 | activerecord-jdbcsqlite3-adapter |
| 4,298 | 2,109,442 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |