cirandas.net

ref: master

plugins/soft_delete/lib/soft_delete_plugin.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
module SoftDeletePlugin

  extend Noosfero::Plugin::ParentMethods

  def self.plugin_name
    _'Soft delete for models'
  end

  def self.plugin_description
    _'Default to soft delete instead of real delete on supported models'
  end

end

require 'soft_delete_plugin/model_methods'