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: 22,701 of 187,255
Downloads: 64,539
Daily
Ranking: 35,312 of 187,239
Downloads: 7
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 | 2,973,645,220 | bundler |
36 | 711,782,395 | activerecord |
99 | 421,256,244 | simplecov |
274 | 163,802,561 | sqlite3 |
4,114 | 2,214,088 | jdbc-sqlite3 |
4,212 | 2,086,804 | activerecord-jdbcsqlite3-adapter |
4,294 | 1,989,256 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |