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

Version Path
apispree_core-0.0.0 app/controllers/admin/tax_rates_controller.rb
My-Commerce_core-1.1.0 app/controllers/admin/tax_rates_controller.rb
My-Commerce_core-1.0.0 app/controllers/admin/tax_rates_controller.rb
MyCommerceapi-1.0.0 core/app/controllers/admin/tax_rates_controller.rb
MyCommerce-0.0.3 core/app/controllers/admin/tax_rates_controller.rb
rfcommerce_core-0.0.3 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.6 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.5 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.4 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.3 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.2 app/controllers/admin/tax_rates_controller.rb
spree_core-0.70.0.rc2 app/controllers/admin/tax_rates_controller.rb
spree_core-0.70.RC1 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.1 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.0 app/controllers/admin/tax_rates_controller.rb
spree_core-0.60.0.RC1 app/controllers/admin/tax_rates_controller.rb