app/controllers/spree/admin/variants_controller_decorator.rb
# this loads the variant for the master variant volume price editing
this loads the variant for the master variant volume price editing
this loads the variant for the master variant volume price editing
def load_resource_instance
    parent
    if new_actions.include?(params[:action].to_sym)
      build_resource
    elsif params[:id]
      Spree::Variant.find(params[:id])
    end
  end
def load_resource_instance parent if new_actions . include? ( params [ :action ] . to_sym ) build_resource elsif params [ :id ] Spree :: Variant . find ( params [ :id ] ) end end
this loads the variant for the master variant volume price editing
this loads the variant for the master variant volume price editing