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:
=

installation:
=

Versions:

  1. 0.2.0 July 11, 2017 (8,5 ko)
  2. 0.1.0 February 07, 2011 (7 ko)

Dépendances de Runtime (1):

Dépendances de Development (6):

Propriétaires:

Auteurs:

  • Pascal Zumkehr

Total de contrôle SHA 256:

=

Total de téléchargements 52 004

Pour cette version 33 590

Version publiée:

License:

MIT

Version de Ruby requise: >= 0

Liens: