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: 25,146 of 182,878
Downloads: 50,339
Daily
Ranking: 37,467 of 182,869
Downloads: 2
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,375,186,063 | bundler |
35 | 590,308,611 | activerecord |
99 | 344,751,584 | simplecov |
249 | 140,603,107 | sqlite3 |
4,016 | 1,896,641 | jdbc-sqlite3 |
4,038 | 1,865,845 | activerecord-jdbcsqlite3-adapter |
4,053 | 1,851,549 | jeweler |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |