Sha256: e0c9d01b21f705a816e69ad092296d106cf7e787c496a1efef84783e1f87482d
Contents?: true
Size: 655 Bytes
Versions: 5
Compression:
Stored size: 655 Bytes
Contents
module Spree module Admin module OptionValuesControllerDecorator def update option_value = Spree::OptionValue.find(params[:id]) option_value.update update_option_value_attribute redirect_to spree.edit_admin_option_type_path(option_value.option_type) end private def update_option_value_attribute params.require(:option_value).permit(permitted_params) end def permitted_params Spree::PermittedAttributes.option_value_attributes end end end end SpreeMobility.prepend_once(::Spree::Admin::OptionValuesController, Spree::Admin::OptionValuesControllerDecorator)
Version data entries
5 entries across 5 versions & 1 rubygems