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-2.7.2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.6.4 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.8.2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.8.1 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.6.3 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.8.0 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.7.1 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend-2.6.2 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.4 app/controllers/spree/admin/tax_rates_controller.rb
solidus_backend_devise_token_auth-2.8.0.alpha.3 app/controllers/spree/admin/tax_rates_controller.rb