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