module ActiveWorker::Behavior::HasRootObject::ClassExtensions

Public Instance Methods

root_object_relation(relation) click to toggle source
# File lib/active_worker/behavior/has_root_object.rb, line 6
def root_object_relation(relation)
  belongs_to :root_object, :polymorphic => true, inverse_of: relation
end