Sha256: 67f574f33a901b78919b3f5679a981a432745af32622f037c0ce6af3ab516f89
Contents?: true
Size: 443 Bytes
Versions: 16
Compression:
Stored size: 443 Bytes
Contents
class Admin::TaxRatesController < Admin::ResourceController before_filter :load_data update.after :update_after create.after :create_after private def load_data @available_zones = Zone.order(:name) @available_categories = TaxCategory.order(:name) @calculators = TaxRate.calculators end def update_after Rails.cache.delete('vat_rates') end def create_after Rails.cache.delete('vat_rates') end end
Version data entries
16 entries across 16 versions & 6 rubygems