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

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

Instance Method Summary collapse

Instance Method Details

#clear_solid_cacheObject



13
14
15
16
17
18
19
20
# File 'tmpsets/set/mod012-solid_cache/all/solid_cache.rb', line 13

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