Class: ActivePropagation::Deletor
- Inherits:
-
Object
- Object
- ActivePropagation::Deletor
- Extended by:
- PropagaterHelper
- Defined in:
- lib/active_propagation.rb
Class Method Summary collapse
Methods included from PropagaterHelper
Class Method Details
.run(klass_str, model_id, assoc, only) ⇒ Object
99 100 101 102 103 104 |
# File 'lib/active_propagation.rb', line 99 def self.run(klass_str, model_id, assoc, only) klass = klass_str.constantize Propagater.new(klass, assoc, model_id).run do |a| a.destroy end end |