Sha256: 5bb969bfa386a26ab7c19bdd01218adecd885c7edd2283ac426944155eb1307d
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true require 'tqdm' task 'monarchy:reparentize' do Monarchy.resource_classes.with_progress.each do |klass| klass.all.each do |model| model.send(:assign_parent, true) end end end task 'monarchy:hierarchization' do Monarchy.resource_classes.with_progress.each do |klass| klass.all.each do |model| model.send(:ensure_hierarchy) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monarchy-1.0.0 | lib/tasks/monarchy_tasks.rake |