Sha256: 4cee9877ee946023d8e975a3d5e3e4805c930f53cf88fc5d8bcdcd06991aecd3
Contents?: true
Size: 625 Bytes
Versions: 8
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Spree module Admin class PrototypesController < ResourceController def show if request.xhr? render layout: false else redirect_to admin_prototypes_path end end def available @prototypes = Prototype.order('name asc') respond_with(@prototypes) do |format| format.html { render layout: !request.xhr? } format.js end end def select @prototype ||= Prototype.find(params[:id]) @prototype_properties = @prototype.properties end end end end
Version data entries
8 entries across 8 versions & 1 rubygems