Sha256: 6eb561e44afe204ed5ce51993a5a2f30ce6dba6f6b0fd78a7fb2a1009b86c0dc
Contents?: true
Size: 601 Bytes
Versions: 133
Compression:
Stored size: 601 Bytes
Contents
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
133 entries across 133 versions & 2 rubygems