Class: ActivePropagation::Deletor

Inherits:
Object
  • Object
show all
Extended by:
PropagaterHelper
Defined in:
lib/active_propagation.rb

Class Method Summary collapse

Methods included from PropagaterHelper

propagated_attributes

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