RubyGems Navigation menu

protective 0.1.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 依赖 (2):

Development 依赖 (4):

bundler ~> 1.0.0
jeweler ~> 1.5.2
rcov >= 0
sqlite3 >= 0

业主:

作者:

  • Pascal Zumkehr

SHA 256 校验和:

=

下载总量 50,931

这个版本 18,395

版本发布:

许可:

需要的 Ruby 版本:

链接: