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.5KB)
  2. 0.1.0 - February 07, 2011 (7KB)

Runtime依存関係 (2):

Development依存関係 (4):

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

所有者:

作者:

  • Pascal Zumkehr

SHA 256チェックサム:

8eb8b4013b851140e6d7d7c57bd5d145902d50db769e8f7168b51813c5a96811

累計ダウンロード数 45,335

このバージョンのみ 18,313

ライセンス:

N/A

必要なRubyのバージョン: なし

リンク: