Sha256: 3e6978de6f6a73e1814e161102a429932f6347dddfd66cdf3d1b79ee5c4fdfbe
Contents?: true
Size: 753 Bytes
Versions: 9
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true namespace :iiif_print do namespace :update do desc 'Make sure all child work models have the correct attribute' task is_child_attribute: [:environment] do Account.find_each do |account| switch!(account.cname) if defined? Account puts "********************** switched to #{account.cname} **********************" Hyrax.config.curation_concerns.each do |cc| puts "********************** checking #{cc}s **********************" next if cc.count.zero? cc.find_each(&:save) end rescue StandardError puts "********************** failed to update account #{account.cname} **********************" next end end end end
Version data entries
9 entries across 9 versions & 1 rubygems