Sha256: 957f333d7593cac773b003deaf14e9149506288e4e05c550cf175bae3d4d89bf
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
module ClassMethods def reset_script_machine Auth.as_bot do card = Card[:all, :script, :machine_output] if card card.update_columns trash: true card.expire Card::Virtual.where(right_id: Card::MachineCacheID).delete_all end end end def reset_all_machines Auth.as_bot do Card.search(right: { codename: "machine_output" }).each do |card| card.update_columns trash: true card.expire end Card::Virtual.where(right_id: Card::MachineCacheID).delete_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.99.3 | mod/machines/set/all/reset_machines.rb |
card-1.99.2 | mod/machines/set/all/reset_machines.rb |