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.9 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.8 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.8 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.7 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.17 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.7 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.16 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.6 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.6 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.15 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.14 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.5 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.5 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.13 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.4 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.4 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.11.12 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.0.3 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.3 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-3.1.2 app/controllers/spree/admin/tax_rates_controller.rb