Module: ActiveWorker::Behavior::ActsAsRootObject::ClassExtensions
- Defined in:
- lib/active_worker/behavior/acts_as_root_object.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_root_for(relation, class_name) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/active_worker/behavior/acts_as_root_object.rb', line 6 def acts_as_root_for(relation, class_name) has_many relation, :dependent => :delete, :class_name => class_name, :as => :root_object, :autosave => true end |