Sha256: bd2aa135827429d974d2bef0b97755a0bb2ff5a445194ef2c0e227d93f6f262f

Contents?: true

Size: 396 Bytes

Versions: 85

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Admin
    class TaxRatesController < ResourceController
      before_action :load_data

      private

      def load_data
        @available_zones = Spree::Zone.order(:name)
        @available_categories = Spree::TaxCategory.order(:name)
        @calculators = Rails.application.config.spree.calculators.tax_rates
      end
    end
  end
end

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
solidus_backend-3.1.1 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.0 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.11 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.10.5 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.10 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.1 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.0 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.9 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.8 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.7 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.6 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.0.rc2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.5 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.4 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.3 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.1 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.10.3 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.0 app/controllers/spree/admin/tax_rates_controller.rb