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: 26,152 of 180,459
Downloads: 45,122
Daily
Ranking: 29,930 of 180,454
Downloads: 13
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,075,871,620 | bundler |
34 | 540,079,460 | activerecord |
102 | 311,649,613 | simplecov |
238 | 132,481,642 | sqlite3 |
3,887 | 1,813,052 | jeweler |
3,896 | 1,800,246 | jdbc-sqlite3 |
3,914 | 1,774,266 | activerecord-jdbcsqlite3-adapter |
Owners
# | Gravatar | Handle |
---|---|---|
1 | codez |