Sha256: 6018cc5ff66f08cb4828f19b02bac4bb509ad21c4a4be5cd580a5dc0ff92ca6d

Contents?: true

Size: 259 Bytes

Versions: 21

Compression:

Stored size: 259 Bytes

Contents

module ClassMethods
  def reset_all_machines
    Auth.as_bot do
      Card.search(
        right: { codename: %w[in machine_cache machine_output] }
      ).each do |card|
        card.update_columns trash: true
        card.expire
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
card-1.94.1 mod/machines/set/all/reset_machines.rb
card-1.94.0 mod/machines/set/all/reset_machines.rb
card-1.93.13 mod/machines/set/all/reset_machines.rb
card-1.93.12 mod/machines/set/all/reset_machines.rb
card-1.93.11 mod/machines/set/all/reset_machines.rb
card-1.93.10 mod/machines/set/all/reset_machines.rb
card-1.93.9 mod/machines/set/all/reset_machines.rb
card-1.93.8 mod/machines/set/all/reset_machines.rb
card-1.93.7 mod/machines/set/all/reset_machines.rb
card-1.93.6 mod/machines/set/all/reset_machines.rb
card-1.93.5 mod/machines/set/all/reset_machines.rb
card-1.93.4 mod/machines/set/all/reset_machines.rb
card-1.93.3 mod/machines/set/all/reset_machines.rb
card-1.93.2 mod/machines/set/all/reset_machines.rb
card-1.93.1 mod/machines/set/all/reset_machines.rb
card-1.93.0 mod/machines/set/all/reset_machines.rb
card-1.92.2 mod/machines/set/all/reset_machines.rb
card-1.92.1 mod/machines/set/all/reset_machines.rb
card-1.92 mod/machines/set/all/reset_machines.rb
card-1.91 mod/machines/set/all/reset_machines.rb