Module: Card::Set::All::SolidCache::ClassMethods

Defined in:
tmpsets/set/mod008-solid_cache/all/solid_cache.rb

Instance Method Summary collapse

Instance Method Details

#clear_solid_cacheObject



9
10
11
12
13
14
15
16
# File 'tmpsets/set/mod008-solid_cache/all/solid_cache.rb', line 9

def clear_solid_cache
  Auth.as_bot do
    Card.search(right: { codename: "solid_cache" }).each do |card|
      card.update_columns trash: true
      card.expire
    end
  end
end