Sha256: 37fec17be32b0619201b4b7dd47ac51abc2ef852dbaa02efdd6bc175dc2e2619

Contents?: true

Size: 477 Bytes

Versions: 10

Compression:

Stored size: 477 Bytes

Contents

module Spree
  module Admin
    class OptionValuesController < ResourceController
      include Translatable

      # This method is added here to allow `edit_polymorphic_path` to work
      def edit_admin_option_value_path(option_value)
        spree.edit_admin_option_type_url(option_value.option_type)
      end

      def destroy
        option_value = Spree::OptionValue.find(params[:id])
        option_value.destroy
        render plain: nil
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.8.3 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.8.2 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.8.1 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.7.2 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.6.2 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.7.1 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.7.0 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.6.1 app/controllers/spree/admin/option_values_controller.rb
spree_backend-4.6.0 app/controllers/spree/admin/option_values_controller.rb