RubyGems Navigation menu

protective 0.2.0

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.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.2.0 July 11, 2017 (8.5 KB)
  2. 0.1.0 February 07, 2011 (7.0 KB)

Runtime 相依性套件 (1):

Development 相依性套件 (6):

擁有者:

作者:

  • Pascal Zumkehr

SHA 256 總和檢查碼:

=

總下載次數 52,000

這個版本 33,587

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: