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: 20,586 of 192,137
Downloads: 80,734
Daily
Ranking: 12,356 of 192,103
Downloads: 52
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,342,103,677 | bundler |
| 36 | 778,810,251 | activerecord |
| 99 | 460,193,193 | simplecov |
| 279 | 179,551,852 | sqlite3 |
| 4,159 | 2,403,009 | jdbc-sqlite3 |
| 4,297 | 2,196,037 | activerecord-jdbcsqlite3-adapter |
| 4,299 | 2,189,841 | jeweler |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | codez |