Sha256: ebf33890a5f154da71a2d1c0cb63905381fa2b2a7245fb218a1904541f807288
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (ResetMachines) # module ResetMachines; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/machines/set/all/reset_machines.rb"; end 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: 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: MachineCacheID).delete_all end end end end;end;end;end; # ~~ generated from /Users/ezl5238/dev/decko/gem/mod/machines/set/all/reset_machines.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod015-machines/all/reset_machines.rb |